projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Proper handling of NULL return code.
[fw/pdclib]
/
functions
/
stdio
/
vsscanf.c
diff --git
a/functions/stdio/vsscanf.c
b/functions/stdio/vsscanf.c
index 34397ac36407834ff02f63b16de83190fc4db493..f33b8c418e6e9d8a12d3cbcd2ee955f9b0c85ed9 100644
(file)
--- a/
functions/stdio/vsscanf.c
+++ b/
functions/stdio/vsscanf.c
@@
-59,6
+59,11
@@
int vsscanf( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict form
}
else
{
+ /* NULL return code indicates matching error */
+ if ( rc == NULL )
+ {
+ break;
+ }
/* Continue parsing after conversion specifier */
format = rc;
}