eolian: check the other boolean rather than itself
authorDaniel Kolesa <d.kolesa@samsung.com>
Thu, 12 Feb 2015 11:19:24 +0000 (11:19 +0000)
committerDaniel Kolesa <d.kolesa@samsung.com>
Thu, 12 Feb 2015 11:19:24 +0000 (11:19 +0000)
src/lib/eolian/eo_parser.c

index 07e3754..884302e 100644 (file)
@@ -1146,7 +1146,7 @@ parse_param(Eo_Lexer *ls, Eina_List **params, Eina_Bool allow_inout,
         eo_lexer_get(ls);
         break;
       case KW_at_nullable:
-        if (has_nullable)
+        if (has_nonull)
           eo_lexer_syntax_error(ls, "both nullable and nonull specified");
         CASE_LOCK(ls, nullable, "c_only qualifier");
         eo_lexer_get(ls);