[packages] xkeyboard-config: misc fixes:
[openwrt/svn-archive/archive.git] / net / appweb / patches / 100-compile_fix.patch
1 --- a/src/ejs/ejsLib.c
2 +++ b/src/ejs/ejsLib.c
3 @@ -21544,11 +21544,13 @@ EjsVar *ejsThrowInternalError(Ejs *ejs,
4
5 EjsVar *ejsThrowMemoryError(Ejs *ejs)
6 {
7 + va_list fmtArgs;
8 +
9 /*
10 * Don't do double exceptions for memory errors
11 */
12 if (ejs->exception == 0) {
13 - return ejsCreateException(ejs, ES_MemoryError, 0, 0);
14 + return ejsCreateException(ejs, ES_MemoryError, NULL, fmtArgs);
15 }
16 return ejs->exception;
17 }