appweb: fix a compile error
authorFelix Fietkau <nbd@openwrt.org>
Mon, 19 Oct 2009 06:53:25 +0000 (06:53 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 19 Oct 2009 06:53:25 +0000 (06:53 +0000)
SVN-Revision: 18067

net/appweb/patches/100-compile_fix.patch [new file with mode: 0644]

diff --git a/net/appweb/patches/100-compile_fix.patch b/net/appweb/patches/100-compile_fix.patch
new file mode 100644 (file)
index 0000000..8e53263
--- /dev/null
@@ -0,0 +1,17 @@
+--- a/src/ejs/ejsLib.c
++++ b/src/ejs/ejsLib.c
+@@ -21544,11 +21544,13 @@ EjsVar *ejsThrowInternalError(Ejs *ejs, 
+ EjsVar *ejsThrowMemoryError(Ejs *ejs)
+ {
++    va_list     fmtArgs;
++
+     /*
+      *  Don't do double exceptions for memory errors
+      */
+     if (ejs->exception == 0) {
+-        return ejsCreateException(ejs, ES_MemoryError, 0, 0);
++        return ejsCreateException(ejs, ES_MemoryError, NULL, fmtArgs);
+     }
+     return ejs->exception;
+ }