Index: code/tools/asm/q3asm.c =================================================================== --- code/tools/asm/q3asm.c (revision 1387) +++ code/tools/asm/q3asm.c (working copy) @@ -1615,6 +1616,10 @@ asmFileNames[ numAsmFiles ] = copystring( argv[ i ] ); numAsmFiles++; } + // In some case it Segfault without this check + if ( numAsmFiles == 0 ) { + Error( "No file to assemble\n" ); + } InitTables(); Assemble();