From 2c31540fa9142a29619bff7788b60f115f3bef75 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Mon, 8 Nov 2004 03:19:10 +0000
Subject: [PATCH] improve assertion

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2087 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
---
 src/nano.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nano.c b/src/nano.c
index 845e6023..b454c3f6 100644
--- a/src/nano.c
+++ b/src/nano.c
@@ -672,7 +672,7 @@ partition *partition_filestruct(filestruct *top, size_t top_x,
 void unpartition_filestruct(partition *p)
 {
     char *tmp;
-    assert(p != NULL);
+    assert(p != NULL && fileage != NULL && filebot != NULL);
 
     /* Reattach the line above the top of the partition, and restore the
      * text before top_x from top_data.  Free top_data when we're done
-- 
GitLab