appweb: fix a compile error

git-svn-id: svn://svn.openwrt.org/openwrt/packages@18067 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-10-19 06:53:25 +00:00
parent 9e1a5d80d3
commit 14c0d43087

View File

@ -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;
}