summaryrefslogtreecommitdiff
path: root/girepository
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2015-10-04 12:00:23 -0400
committerColin Walters <walters@verbum.org>2015-10-04 12:00:23 -0400
commit2699d5116ab5aaf801521c0f6c96bda09a23fb15 (patch)
tree3a7953c88a801a1eb44d52121c8646e3f300fa6f /girepository
parent58ec554b6d39ff1dd0db3f9cd7b6c34d947ccaaf (diff)
downloadgobject-introspection-2699d5116ab5aaf801521c0f6c96bda09a23fb15.tar.gz
girparser: Avoid a crash with an unset transfer annotation
Spotted by Coverity. https://bugzilla.gnome.org/show_bug.cgi?id=752549
Diffstat (limited to 'girepository')
-rw-r--r--girepository/girparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/girepository/girparser.c b/girepository/girparser.c
index eb61e34a..4c43e0ae 100644
--- a/girepository/girparser.c
+++ b/girepository/girparser.c
@@ -1066,9 +1066,9 @@ start_instance_parameter (GMarkupParseContext *context,
state_switch (ctx, STATE_PASSTHROUGH);
- if (strcmp (transfer, "full") == 0)
+ if (g_strcmp0 (transfer, "full") == 0)
transfer_full = TRUE;
- else if (strcmp (transfer, "none") == 0)
+ else if (g_strcmp0 (transfer, "none") == 0)
transfer_full = FALSE;
else
{