[PC-BSD Commits] r1186 - pcbsd/trunk/SoundDetect
svn at pcbsd.org
svn at pcbsd.org
Tue Jan 15 19:37:12 PST 2008
Author: carlos
Date: 2008-01-15 19:37:10 -0800 (Tue, 15 Jan 2008)
New Revision: 1186
Modified:
pcbsd/trunk/SoundDetect/sound_detect.c
Log:
fix update
Modified: pcbsd/trunk/SoundDetect/sound_detect.c
===================================================================
--- pcbsd/trunk/SoundDetect/sound_detect.c 2008-01-16 03:23:24 UTC (rev 1185)
+++ pcbsd/trunk/SoundDetect/sound_detect.c 2008-01-16 03:37:10 UTC (rev 1186)
@@ -162,15 +162,19 @@
curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, bodyfile);
- curl_easy_perform(curl_handle);
-
+ if(curl_easy_perform(curl_handle) == 0 )
+{
fclose(bodyfile);
-
curl_easy_cleanup(curl_handle);
if (copy_file(new_soundcards_xml,SOUNDCARD_XML) == 0)
look_for_soundcard(ALREADY_CALLED);
-return 0 ;
+ return 0 ;
+}
+ fclose(bodyfile);
+ curl_easy_cleanup(curl_handle);
+
+return -1 ;
}
int main()
More information about the Commits
mailing list