summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavier Chantry <chantry.xavier@gmail.com>2010-10-31 21:39:31 +0100
committerDan McGee <dan@archlinux.org>2010-12-12 20:07:15 -0600
commitc2cce1f46a754c04c3623088a9e43922a6c10e2d (patch)
tree615ee055aa3f4c8ada883d800aeb7ddea036daf6 /src
parent0e39cf9275c6a6f965e364792527c2704327bd02 (diff)
downloadpacman-c2cce1f46a754c04c3623088a9e43922a6c10e2d.tar.xz
Fix a few problems reported by clang-analyzer
One missing NULL-check and 3 dead assignments. Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/util.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 5b4b2e80..31966caa 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -651,7 +651,6 @@ void print_packages(const alpm_list_t *packages)
string = strreplace(temp, "%s", size);
free(size);
free(temp);
- temp = string;
}
printf("%s\n",string);
free(string);