1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

"goto_bad" should be used in alloc_printed_tags function, not "goto bad".

This commit is contained in:
Peter Rajnoha 2010-09-21 10:42:02 +00:00
parent 70431c8146
commit 064ed484b4

View File

@ -38,21 +38,21 @@ char *alloc_printed_tags(struct dm_list *tags)
} }
if (!emit_to_buffer(&buf, &size, "[")) if (!emit_to_buffer(&buf, &size, "["))
goto bad; goto_bad;
dm_list_iterate_items(sl, tags) { dm_list_iterate_items(sl, tags) {
if (!first) { if (!first) {
if (!emit_to_buffer(&buf, &size, ", ")) if (!emit_to_buffer(&buf, &size, ", "))
goto bad; goto_bad;
} else } else
first = 0; first = 0;
if (!emit_to_buffer(&buf, &size, "\"%s\"", sl->str)) if (!emit_to_buffer(&buf, &size, "\"%s\"", sl->str))
goto bad; goto_bad;
} }
if (!emit_to_buffer(&buf, &size, "]")) if (!emit_to_buffer(&buf, &size, "]"))
goto bad; goto_bad;
return buffer; return buffer;