commit - segv when saving wo suffix


Subject: commit - segv when saving wo suffix
From: Jesper Skov (jskov@redhat.com)
Date: Sun Jun 11 2000 - 04:53:40 CDT


I'm wondering if this could be the problem described by Bug 473 (the
CRASH part).

Anyway, it's going in.

Jesper

Index: pd_Document.cpp
===================================================================
RCS file: /cvsroot/abi/src/text/ptbl/xp/pd_Document.cpp,v
retrieving revision 1.67
diff -u -5 -r1.67 pd_Document.cpp
--- pd_Document.cpp 2000/05/25 09:32:00 1.67
+++ pd_Document.cpp 2000/06/11 09:48:54
@@ -200,11 +200,12 @@
         IE_Exp * pie = NULL;
         UT_Error errorCode;
 
         // make sure we don't cause extension problems
 
- if(strcmp(UT_pathSuffix(m_szFilename), ".doc") == 0)
+ const char* szSuffix = UT_pathSuffix(m_szFilename);
+ if(szSuffix && strcmp(szSuffix, ".doc") == 0)
         {
           UT_DEBUGMSG(("PD_Document::Save -- word extensions cause problems\n"));
           return UT_EXTENSIONERROR;
         }
 



This archive was generated by hypermail 2b25 : Sun Jun 11 2000 - 04:53:46 CDT