projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests/test-strstr.c: Rewrite to use malloc/strcpy instead of strdup.
[gnulib.git]
/
lib
/
c-strtod.c
diff --git
a/lib/c-strtod.c
b/lib/c-strtod.c
index
9723e0b
..
51e996e
100644
(file)
--- a/
lib/c-strtod.c
+++ b/
lib/c-strtod.c
@@
-73,7
+73,7
@@
C_STRTOD (char const *nptr, char **endptr)
if (!locale)
{
if (endptr)
if (!locale)
{
if (endptr)
- *endptr = nptr;
+ *endptr =
(char *)
nptr;
return 0; /* errno is set here */
}
return 0; /* errno is set here */
}
@@
-89,7
+89,7
@@
C_STRTOD (char const *nptr, char **endptr)
if (saved_locale == NULL)
{
if (endptr)
if (saved_locale == NULL)
{
if (endptr)
- *endptr = nptr;
+ *endptr =
(char *)
nptr;
return 0; /* errno is set here */
}
setlocale (LC_NUMERIC, "C");
return 0; /* errno is set here */
}
setlocale (LC_NUMERIC, "C");