Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/pacsort.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/pacsort.c b/src/util/pacsort.c
index 02b9084b..d864fdb9 100644
--- a/src/util/pacsort.c
+++ b/src/util/pacsort.c
@@ -399,9 +399,13 @@ static int vercmp(const void *p1, const void *p2)
static char escape_char(const char *string)
{
+ if(!string) {
+ return -1;
+ }
+
const size_t len = strlen(string);
- if(!string || len > 2) {
+ if(len > 2) {
return -1;
}