diff options
author | Sami Kerola | 2014-05-11 21:26:40 +0200 |
---|---|---|
committer | Karel Zak | 2014-05-12 13:07:04 +0200 |
commit | 0fd4b8132587a264f1e0df46eec7c12bba68c752 (patch) | |
tree | fccef086d4623faba096acdc88392eff5a1ac134 /misc-utils/blkid.c | |
parent | cytune: remove from util-linux (diff) | |
download | kernel-qcow2-util-linux-0fd4b8132587a264f1e0df46eec7c12bba68c752.tar.gz kernel-qcow2-util-linux-0fd4b8132587a264f1e0df46eec7c12bba68c752.tar.xz kernel-qcow2-util-linux-0fd4b8132587a264f1e0df46eec7c12bba68c752.zip |
blkid: remove unused variable
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/blkid.c')
-rw-r--r-- | misc-utils/blkid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index b3eade56b..0d0ea6a22 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) { |