shithub: libmujs

Download patch

ref: 6fa0097d9ea62cc009bc365d1c12e5310c8127b3
parent: 84faaff8ff8d6e71bbd316edc633d90a38def6ec
author: Tor Andersson <tor.andersson@artifex.com>
date: Sat Nov 29 11:16:14 EST 2014

Silence GCC warning.

--- a/jsvalue.c
+++ b/jsvalue.c
@@ -5,7 +5,7 @@
 #include "utf.h"
 
 #define JSV_ISSTRING(v) (v->type==JS_TSHRSTR || v->type==JS_TMEMSTR || v->type==JS_TLITSTR)
-#define JSV_TOSTRING(v) (v->type==JS_TSHRSTR ? v->u.shrstr : v->type==JS_TLITSTR ? v->u.litstr : v->type==JS_TMEMSTR ? v->u.memstr->p : NULL)
+#define JSV_TOSTRING(v) (v->type==JS_TSHRSTR ? v->u.shrstr : v->type==JS_TLITSTR ? v->u.litstr : v->type==JS_TMEMSTR ? v->u.memstr->p : "")
 
 double jsV_numbertointeger(double n)
 {