[964] in BarnOwl Developers

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

[D-O-H] r951 - branches/barnowl_sqlite/owl

daemon@ATHENA.MIT.EDU (nelhage@MIT.EDU)
Thu Oct 29 18:11:38 2009

Resent-From: nelhage@mit.edu
Resent-To: barnowl-dev-mtg@charon.mit.edu
X-Original-To: nelhage@nelhage.com
To: dirty-owl-hackers@mit.edu
From: nelhage@MIT.EDU
Reply-to: dirty-owl-hackers@MIT.EDU
Date: Mon, 18 Feb 2008 20:57:58 -0500 (EST)

Author: nelhage
Date: 2008-02-18 20:57:58 -0500 (Mon, 18 Feb 2008)
New Revision: 951

Modified:
   branches/barnowl_sqlite/owl/functions.c
Log:
SEGV less

Modified: branches/barnowl_sqlite/owl/functions.c
===================================================================
--- branches/barnowl_sqlite/owl/functions.c	2008-02-19 01:54:45 UTC (rev 950)
+++ branches/barnowl_sqlite/owl/functions.c	2008-02-19 01:57:58 UTC (rev 951)
@@ -1201,7 +1201,8 @@
   int savey, lines, y;
   owl_view_iterator it;
 
-  if (!owl_view_iterator_is_valid(curmsg)) return;
+  if (!owl_view_iterator_is_valid(curmsg)
+      || !owl_view_iterator_is_valid(topmsg)) return;
     
   /* If we're off the top of the screen then center */
   if (owl_view_iterator_cmp(curmsg, topmsg) < 0) {


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