From 64cc7834a8b3857b31a395aec6ae9e25750044bf Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Tue, 21 Sep 2010 10:42:02 +0000 Subject: [PATCH] "goto_bad" should be used in alloc_printed_tags function, not "goto bad". --- lib/format_text/tags.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/format_text/tags.c b/lib/format_text/tags.c index 65db03e4e..1a8c254f6 100644 --- a/lib/format_text/tags.c +++ b/lib/format_text/tags.c @@ -38,21 +38,21 @@ char *alloc_printed_tags(struct dm_list *tags) } if (!emit_to_buffer(&buf, &size, "[")) - goto bad; + goto_bad; dm_list_iterate_items(sl, tags) { if (!first) { if (!emit_to_buffer(&buf, &size, ", ")) - goto bad; + goto_bad; } else first = 0; if (!emit_to_buffer(&buf, &size, "\"%s\"", sl->str)) - goto bad; + goto_bad; } if (!emit_to_buffer(&buf, &size, "]")) - goto bad; + goto_bad; return buffer; -- 2.43.5