From: Darren S. <ds...@us...> - 2005-09-15 21:52:14
|
Update of /cvsroot/xine/gnome-xine/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24477/src Modified Files: script_engine.c Log Message: Handle null string pointer a little more sanely. Index: script_engine.c =================================================================== RCS file: /cvsroot/xine/gnome-xine/src/script_engine.c,v retrieving revision 1.58 retrieving revision 1.59 diff -u -r1.58 -r1.59 --- script_engine.c 2 Sep 2005 01:48:56 -0000 1.58 +++ script_engine.c 15 Sep 2005 21:52:03 -0000 1.59 @@ -681,7 +681,7 @@ if (JSVAL_IS_STRING (id)) { JSString *str = JS_ValueToString (cx, id); - char *prop = JS_GetStringBytes (str); + char *prop = str ? JS_GetStringBytes (str) : ""; GList *n; logprintf ("script_engine: looking for generic property '%s' in '%s'\n", |