summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-10-12 04:57:56 +0000
committersabetts <sabetts>2001-10-12 04:57:56 +0000
commit854561282ef06f986d1e1094e1ea62d1f6908170 (patch)
tree845349c880402cb7067b4dcc605bd354d7e11d03
parentaaffa46c3bb46d00484d934fea40233ab689f916 (diff)
downloadratpoison-854561282ef06f986d1e1094e1ea62d1f6908170.zip
(show_last_message): abort if there was no last
message.
-rw-r--r--ChangeLog3
-rw-r--r--src/bar.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a64a658..e408ae7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2001-10-11 shawn <sabetts@vcn.bc.ca>
+ * src/bar.c (show_last_message): abort if there was no last
+ message.
+
* src/events.c (configure_request): Always check the rudeness
level before honouring a raise request.
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