Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/log.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/pacman/log.c b/src/pacman/log.c
index 35cef028..2d929bd1 100644
--- a/src/pacman/log.c
+++ b/src/pacman/log.c
@@ -45,6 +45,10 @@ void cb_log(unsigned short level, char *msg)
{
char str[9] = "";
+ if(!strlen(msg)) {
+ return;
+ }
+
switch(level) {
case PM_LOG_DEBUG:
sprintf(str, _("debug"));
@@ -69,9 +73,7 @@ void cb_log(unsigned short level, char *msg)
break;
}
- if(strlen(str) > 0) {
- MSG(NL, "%s: %s\n", str, msg);
- }
+ MSG(NL, "%s: %s\n", str, msg);
}
/* Wrapper to fprintf() that allows to choose if we want the output