eolian gen2: use length_get when enclosing include guards
authorDaniel Kolesa <d.kolesa@osg.samsung.com>
Thu, 15 Sep 2016 13:49:16 +0000 (15:49 +0200)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Fri, 7 Oct 2016 09:54:23 +0000 (11:54 +0200)
src/bin/eolian2/main.c

index 9edb821..d988761 100644 (file)
@@ -111,7 +111,7 @@ static void _fill_all_outs(char **outs, const char *val)
 static Eina_Strbuf *
 _include_guard(const char *fname, const char *gname, Eina_Strbuf *buf)
 {
-   if (!buf || !eina_strbuf_string_get(buf))
+   if (!buf || !eina_strbuf_length_get(buf))
      return buf;
 
    if (!gname)