eolian: silence static analyzer null check (CID 1369018)
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Fri, 10 Feb 2017 15:56:35 +0000 (16:56 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Fri, 10 Feb 2017 15:56:35 +0000 (16:56 +0100)
src/lib/eolian/eo_parser.c

index ed81f7a..e87da68 100644 (file)
@@ -1568,7 +1568,10 @@ parse_implement(Eo_Lexer *ls, Eina_Bool iface)
             }
         eina_stringshare_del(iname);
         if (!impl)
-          eo_lexer_syntax_error(ls, "implement of non-existent function");
+          {
+             eo_lexer_syntax_error(ls, "implement of non-existent function");
+             return;
+          }
         eo_lexer_get(ls);
         goto propbeg;
      }