Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- misc-utils/blkid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index b3eade5..0d0ea6a 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -366,7 +366,7 @@ static void print_tags(blkid_dev dev, char *show[], int output) static int append_str(char **res, size_t *sz, const char *a, const char *b) { - char *str = *res; + char *str; size_t asz = a ? strlen(a) : 0; size_t bsz = b ? strlen(b) : 0; size_t len = *sz + asz + bsz; @@ -374,7 +374,7 @@ static int append_str(char **res, size_t *sz, const char *a, const char *b) if (!len) return -1; - *res = str = xrealloc(str, len + 1); + str = xrealloc(str, len + 1); str += *sz; if (a) { -- 1.9.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html