fix flang nonnull complaint

This commit is contained in:
Carsten Haitzler 2013-07-16 16:58:45 +09:00
parent 7f2eafc8f1
commit 6b6f689718
1 changed files with 2 additions and 0 deletions

View File

@ -906,6 +906,7 @@ _ecore_getopt_parse_long(const char *str,
long int *v)
{
char *endptr = NULL;
if (!str) return EINA_FALSE;
*v = strtol(str, &endptr, 0);
return endptr > str;
}
@ -915,6 +916,7 @@ _ecore_getopt_parse_double(const char *str,
double *v)
{
char *endptr = NULL;
if (!str) return EINA_FALSE;
*v = strtod(str, &endptr);
return endptr > str;
}