summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSilvan Jegen <s.jegen@gmail.com>2014-01-28 17:50:44 +0100
committerAllan McRae <allan@archlinux.org>2014-01-30 13:40:25 +1000
commit77da9dc9748b3f151f98c4c301e8da3a2551860d (patch)
treeaf8452b7edb63ef69f8ce35108d81861f3c0316e /src
parentcb8eae24c9976c023c8ec2aff9bf305202edc4d7 (diff)
Another NULL check removed
Signed-off-by: Silvan Jegen <s.jegen@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/util/pacsort.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util/pacsort.c b/src/util/pacsort.c
index 2d53a1cc..86f2fc68 100644
--- a/src/util/pacsort.c
+++ b/src/util/pacsort.c
@@ -98,10 +98,7 @@ static void buffer_free(struct buffer_t *buf)
return;
}
- if(buf->mem) {
- free(buf->mem);
- }
-
+ free(buf->mem);
free(buf);
}