[Extractor-gtk-cvslog] SF.net SVN: extractor-gtk: [57] trunk/extractor/extractor.c
Extract files from unusual archive formats
Brought to you by:
someone-guy
From: <som...@us...> - 2008-02-22 22:00:07
|
Revision: 57 http://extractor-gtk.svn.sourceforge.net/extractor-gtk/?rev=57&view=rev Author: someone-guy Date: 2008-02-22 14:00:04 -0800 (Fri, 22 Feb 2008) Log Message: ----------- Avoid a crash if we could not open an output file Modified Paths: -------------- trunk/extractor/extractor.c Modified: trunk/extractor/extractor.c =================================================================== --- trunk/extractor/extractor.c 2008-02-22 21:59:06 UTC (rev 56) +++ trunk/extractor/extractor.c 2008-02-22 22:00:04 UTC (rev 57) @@ -77,7 +77,8 @@ strcat(fname, "/"); strcat(fname, file->name); out = fopen(fname, "wb"); - cur_fmt->extract_file(input_file, file, out); + if (out) + cur_fmt->extract_file(input_file, file, out); fclose(out); free(fname); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |