[gnumeric] Avoid null pointer dereference



commit ee092b06b36a592b698895789e86d1d8c62b86fc
Author: J.H.M. Dassen (Ray) <jdassen debian org>
Date:   Tue Sep 7 17:55:18 2010 +0200

    Avoid null pointer dereference

 plugins/excelplugins/excelplugins.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excelplugins/excelplugins.c b/plugins/excelplugins/excelplugins.c
index 1ac4c1b..a93f9a1 100644
--- a/plugins/excelplugins/excelplugins.c
+++ b/plugins/excelplugins/excelplugins.c
@@ -409,8 +409,8 @@ destruct_xloper (XLOPER*x)
 		default:
 			unsupported_xloper_type (x);
 		}
+		x->xltype = xltypeNil;
 	}
-	x->xltype = xltypeNil;
 }
 
 static GnmValue *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]