[pure-lang-svn] SF.net SVN: pure-lang: [120] pure/trunk/runtime.cc
Status: Beta
Brought to you by:
agraef
From: <ag...@us...> - 2008-05-24 10:29:57
|
Revision: 120 http://pure-lang.svn.sourceforge.net/pure-lang/?rev=120&view=rev Author: agraef Date: 2008-05-24 03:30:04 -0700 (Sat, 24 May 2008) Log Message: ----------- Bugfixes in pure_sscanf. Modified Paths: -------------- pure/trunk/runtime.cc Modified: pure/trunk/runtime.cc =================================================================== --- pure/trunk/runtime.cc 2008-05-24 10:23:49 UTC (rev 119) +++ pure/trunk/runtime.cc 2008-05-24 10:30:04 UTC (rev 120) @@ -1791,7 +1791,7 @@ int pure_sscanf_int(const char *buf, const char *format, int32_t *x) { // wrap this up in case int on the target platform is not 32 bit - int count, y, res = sscanf(buf, myformat(format), &y, &count); + int count = -1, y, res = sscanf(buf, myformat(format), &y, &count); *x = y; return (res >= 0)?count:-1; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |