Fix problem reported by clang.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 26 Feb 2009 22:02:00 +0000 (22:02 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 26 Feb 2009 22:02:00 +0000 (22:02 +0000)
By: Luis Felipe Strano Moraes

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@39256 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_getopt.c

index c8c2680..060c02c 100644 (file)
@@ -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);