raster pushed a commit to branch master.

commit 6b6f689718485507f2425bf8198bdf0c59cb1e98
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Jul 16 16:58:45 2013 +0900

    fix flang nonnull complaint
---
 src/lib/ecore/ecore_getopt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c
index bbc5b82..36baeb5 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,
                          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;
 }

-- 

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

Reply via email to