From: <ny...@us...> - 2006-07-10 16:51:30
|
Revision: 127 Author: nyaochi Date: 2006-07-10 09:51:26 -0700 (Mon, 10 Jul 2006) ViewCVS: http://svn.sourceforge.net/pmplib/?rev=127&view=rev Log Message: ----------- Check return value from JS_EvaluateUCScript(). Modified Paths: -------------- trunk/lib/playlist/jspl.c Modified: trunk/lib/playlist/jspl.c =================================================================== --- trunk/lib/playlist/jspl.c 2006-07-10 16:14:40 UTC (rev 126) +++ trunk/lib/playlist/jspl.c 2006-07-10 16:51:26 UTC (rev 127) @@ -461,6 +461,9 @@ /* Evaluate the script. */ ret = JS_EvaluateUCScript(jspl->context, jspl->global, script, ucs2len(script), mbsfilename, 1, &retval); + if (!ret) { + return -1; + } ucs2free(script); free(buff); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |