Improved error checking in main()

darcs-hash:20060203003855-ac50b-d4f5c4e183dc1b38bbfe15bf44be746bb188ef10.gz
This commit is contained in:
axel 2006-02-03 10:38:55 +10:00
parent c3a1473419
commit 807a0b8dbd

4
main.c
View file

@ -271,7 +271,9 @@ int main( int argc, char **argv )
}
rel_filename = str2wcs( file );
abs_filename = wrealpath( rel_filename, 0 );
abs_filename = wrealpath( rel_filename, 0 );
if( !abs_filename )
abs_filename = wcsdup(rel_filename);
reader_push_current_filename( intern( abs_filename ) );
free( rel_filename );
free( abs_filename );