aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/eolian
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2018-06-11 13:07:23 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2018-06-11 13:07:23 +0200
commitb47782372b98de49b06a65ca8032a6a99360281b (patch)
tree9bc1da9ab0ebc9578c1462648418fd4a458c048d /src/bin/eolian
parentevas vg: fix broken vg rendering. (diff)
downloadefl-b47782372b98de49b06a65ca8032a6a99360281b.tar.gz
eolian: silence a potentially uninitialized warning
Compiler thinks mname might be used uninitialized, which is never the case, because cl only exists if mname has been set. It still creates an annoying warning though, so fix that.
Diffstat (limited to 'src/bin/eolian')
-rw-r--r--src/bin/eolian/docs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/eolian/docs.c b/src/bin/eolian/docs.c
index 795808549a..bd2e0b68d5 100644
--- a/src/bin/eolian/docs.c
+++ b/src/bin/eolian/docs.c
@@ -74,7 +74,7 @@ _generate_ref(const Eolian_State *state, const char *refn, Eina_Strbuf *wbuf,
Eolian_Function_Type ftype = EOLIAN_UNRESOLVED;
if (!cl)
{
- const char *mname;
+ const char *mname = NULL;
if (!strcmp(sfx, ".get")) ftype = EOLIAN_PROP_GET;
else if (!strcmp(sfx, ".set")) ftype = EOLIAN_PROP_SET;
if (ftype != EOLIAN_UNRESOLVED)