diff options
Diffstat (limited to 'src/pacman')
-rw-r--r-- | src/pacman/util.c | 4 |
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; |