summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_getopt.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-16 16:58:45 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-16 16:58:45 +0900
commit6b6f689718485507f2425bf8198bdf0c59cb1e98 (patch)
treeed9c9e84dc221c9b5edc8b03f897a5bd81d84563 /src/lib/ecore/ecore_getopt.c
parent7f2eafc8f170833723a73e89d1d433c251b0f851 (diff)
fix flang nonnull complaint
Diffstat (limited to 'src/lib/ecore/ecore_getopt.c')
-rw-r--r--src/lib/ecore/ecore_getopt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c
index bbc5b82f8a..36baeb5e52 100644
--- a/src/lib/ecore/ecore_getopt.c
+++ b/src/lib/ecore/ecore_getopt.c
@@ -906,6 +906,7 @@ _ecore_getopt_parse_long(const char *str,
906 long int *v) 906 long int *v)
907{ 907{
908 char *endptr = NULL; 908 char *endptr = NULL;
909 if (!str) return EINA_FALSE;
909 *v = strtol(str, &endptr, 0); 910 *v = strtol(str, &endptr, 0);
910 return endptr > str; 911 return endptr > str;
911} 912}
@@ -915,6 +916,7 @@ _ecore_getopt_parse_double(const char *str,
915 double *v) 916 double *v)
916{ 917{
917 char *endptr = NULL; 918 char *endptr = NULL;
919 if (!str) return EINA_FALSE;
918 *v = strtod(str, &endptr); 920 *v = strtod(str, &endptr);
919 return endptr > str; 921 return endptr > str;
920} 922}