mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-28 04:35:09 +00:00
Improved error checking in main()
darcs-hash:20060203003855-ac50b-d4f5c4e183dc1b38bbfe15bf44be746bb188ef10.gz
This commit is contained in:
parent
c3a1473419
commit
807a0b8dbd
1 changed files with 3 additions and 1 deletions
2
main.c
2
main.c
|
@ -272,6 +272,8 @@ int main( int argc, char **argv )
|
||||||
|
|
||||||
rel_filename = str2wcs( file );
|
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 ) );
|
reader_push_current_filename( intern( abs_filename ) );
|
||||||
free( rel_filename );
|
free( rel_filename );
|
||||||
free( abs_filename );
|
free( abs_filename );
|
||||||
|
|
Loading…
Reference in a new issue