From: barbieri Date: Thu, 26 Feb 2009 22:02:00 +0000 (+0000) Subject: Fix problem reported by clang. X-Git-Tag: accepted/2.0/20130306.224007~195^2~1620 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45391d814bcf6419e1461d6c25fc391ecb172b1a;p=profile%2Fivi%2Fecore.git Fix problem reported by clang. By: Luis Felipe Strano Moraes git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@39256 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore/ecore_getopt.c b/src/lib/ecore/ecore_getopt.c index c8c2680..060c02c 100644 --- a/src/lib/ecore/ecore_getopt.c +++ b/src/lib/ecore/ecore_getopt.c @@ -1103,12 +1103,11 @@ _ecore_getopt_parse_append(const Ecore_Getopt *parser __UNUSED__, const Ecore_Ge *(double *)data = d; } break; - } - - if (!data) - { - _ecore_getopt_desc_print_error(desc, "could not parse value.\n"); - return 0; + default: + { + _ecore_getopt_desc_print_error(desc, "could not parse value.\n"); + return 0; + } } *val->listp = eina_list_append(*val->listp, data);