mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:26:17 +00:00
do not BSD in some test apps I have. it did not check if input buffer for the convert string was NULL or not.
svn path=/trunk/; revision=20330
This commit is contained in:
parent
559ea9a183
commit
80cc55de74
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ strtod(const char *s, char **sret)
|
||||||
e = 0;
|
e = 0;
|
||||||
esign = 1;
|
esign = 1;
|
||||||
|
|
||||||
|
if (s == NULL)
|
||||||
|
return r;
|
||||||
|
|
||||||
|
|
||||||
while ((*s == ' ') || (*s == '\t'))
|
while ((*s == ' ') || (*s == '\t'))
|
||||||
s++;
|
s++;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue