diff options
Diffstat (limited to 'girepository')
-rw-r--r-- | girepository/gitypelib.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/girepository/gitypelib.c b/girepository/gitypelib.c index de11748b..904dff45 100644 --- a/girepository/gitypelib.c +++ b/girepository/gitypelib.c @@ -2139,7 +2139,7 @@ prefix_with_context (GError **error, const char *section, ValidateContext *ctx) { - GString *str = g_string_new (NULL); + GString *str; GSList *link; char *buf; @@ -2150,6 +2150,8 @@ prefix_with_context (GError **error, return; } + str = g_string_new (NULL); + for (; link; link = link->next) { g_string_append (str, link->data); |