[449] in BarnOwl Developers

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

[D-O-H] r578 - in trunk: . owl

daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:06:17 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
Date: Tue, 30 Jan 2007 17:25:07 -0500
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-To: dirty-owl-hackers@MIT.EDU

Author: nelhage
Date: 2007-01-30 17:25:06 -0500 (Tue, 30 Jan 2007)
New Revision: 578

Modified:
   trunk/
   trunk/owl/perlconfig.c
Log:
 r18294@phanatique:  nelhage | 2007-01-30 17:23:45 -0500
 Be careful about messages with an empty type



Property changes on: trunk
___________________________________________________________________
Name: svk:merge
   - bb873fd7-8e23-0410-944a-99ec44c633eb:/branches/owl/filter-rewrite:15925
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h/trunk:18212
   + bb873fd7-8e23-0410-944a-99ec44c633eb:/branches/owl/filter-rewrite:15925
bb873fd7-8e23-0410-944a-99ec44c633eb:/local/d-o-h/trunk:18294

Modified: trunk/owl/perlconfig.c
===================================================================
--- trunk/owl/perlconfig.c	2007-01-30 21:40:41 UTC (rev 577)
+++ trunk/owl/perlconfig.c	2007-01-30 22:25:06 UTC (rev 578)
@@ -86,7 +86,7 @@
   hv_store(h, "private", strlen("private"), newSViv(owl_message_is_private(m)),0);
 
   type = owl_message_get_type(m);
-  if(!type) type = "generic";
+  if(!type || !*type) type = "generic";
   type = owl_strdup(type);
   type[0] = toupper(type[0]);
   blessas = owl_sprintf("BarnOwl::Message::%s", type);


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