[240] in BarnOwl Developers

home help back first fref pref prev next nref lref last post

[D-O-H] r416 - trunk/owl

daemon@ATHENA.MIT.EDU (nelhage@heretique.mit.edu)
Thu Oct 29 18:04:02 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
To: dirty-owl-hackers@mit.edu
From: nelhage@heretique.mit.edu
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Sat, 28 Oct 2006 16:41:36 -0400 (EDT)

Author: nelhage
Date: 2006-10-28 16:41:36 -0400 (Sat, 28 Oct 2006)
New Revision: 416

Modified:
   trunk/owl/functions.c
Log:
Fixing a segfault when replying to unknown message types

Modified: trunk/owl/functions.c
===================================================================
--- trunk/owl/functions.c	2006-10-28 20:08:38 UTC (rev 415)
+++ trunk/owl/functions.c	2006-10-28 20:41:36 UTC (rev 416)
@@ -2191,6 +2191,11 @@
       }
     }
 
+    if(!buff) {
+        owl_function_error("I don't know how to reply to that message.");
+        return;
+    }
+    
     if (enter) {
       owl_history *hist = owl_global_get_cmd_history(&g);
       owl_history_store(hist, buff);


home help back first fref pref prev next nref lref last post