[pacman-dev] [PATCH 3/4] Another NULL check removed

Silvan Jegen s.jegen at gmail.com
Tue Jan 28 11:50:44 EST 2014


Signed-off-by: Silvan Jegen <s.jegen at gmail.com>
---
 src/util/pacsort.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/util/pacsort.c b/src/util/pacsort.c
index 443e822..df3e809 100644
--- a/src/util/pacsort.c
+++ b/src/util/pacsort.c
@@ -97,10 +97,7 @@ static void buffer_free(struct buffer_t *buf)
 		return;
 	}
 
-	if(buf->mem) {
-		free(buf->mem);
-	}
-
+	free(buf->mem);
 	free(buf);
 }
 
-- 
1.8.5.3



More information about the pacman-dev mailing list