summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bar.c b/src/bar.c
index a329d47..fc7e8c2 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -253,6 +253,8 @@ show_last_message ()
{
char *msg;
+ if (last_msg == NULL) return;
+
/* A little kludge to avoid last_msg in marked_message from being
strdup'd right after freeing the pointer. Note: in this case
marked_message's msg arg would have been the same as