[mw-devel] MW3 r1142 - trunk/src

psycodom at sucs.org psycodom at sucs.org
Sat Jan 2 14:14:30 GMT 2010


Author: psycodom
Date: 2010-01-02 14:14:30 +0000 (Sat, 02 Jan 2010)
New Revision: 1142

Modified:
   trunk/src/js.c
Log:
fixes some missing {} in js_urlget(), my bad!



Modified: trunk/src/js.c
===================================================================
--- trunk/src/js.c	2009-12-18 22:04:24 UTC (rev 1141)
+++ trunk/src/js.c	2010-01-02 14:14:30 UTC (rev 1142)
@@ -777,9 +777,10 @@
 #else
 		curl_easy_setopt(cl, CURLOPT_USERAGENT, "Milliways III v" VER_MAJ "." VER_MIN "." VER_TWK " (Dev)");
 #endif
-		if (curl_easy_perform(cl))
-				snprintf(msg, MAXTEXTLENGTH-1, "JavaScript urlget failed %s: %s", url, cerr);
-				js_warning(cx, msg);
+		if (curl_easy_perform(cl)) {
+			snprintf(msg, MAXTEXTLENGTH-1, "JavaScript urlget failed %s: %s", url, cerr);
+			js_warning(cx, msg);
+		}
 		curl_easy_cleanup(cl);
 
 		jsstr = JS_NewStringCopyZ(cx, answer->p_buffer);




More information about the mw-devel mailing list