if (!locale)
{
if (endptr)
- *endptr = (char *) nptr;
+ *endptr = (char *) nptr;
return 0; /* errno is set here */
}
{
saved_locale = strdup (saved_locale);
if (saved_locale == NULL)
- {
- if (endptr)
- *endptr = (char *) nptr;
- return 0; /* errno is set here */
- }
+ {
+ if (endptr)
+ *endptr = (char *) nptr;
+ return 0; /* errno is set here */
+ }
setlocale (LC_NUMERIC, "C");
}