summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 1806ee52..a3ac66a7 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -194,6 +194,10 @@ void indentprint(const char *str, int indent)
const char *p = str;
int cidx = indent;
+ if(!p) {
+ return;
+ }
+
while(*p) {
if(*p == ' ') {
const char *next = NULL;