File abiword-uninited-vars.patch of Package abiword

--- abi/src/other/ttftool/unix/ps.c
+++ abi/src/other/ttftool/unix/ps.c
@@ -180,7 +180,7 @@
 printPSTrailer(FILE *psfontfile)
 {
 	int i,n;
-	char *name;
+	char *name = NULL; /* FIXME: Is it a correct fix? */
 
 	fprintf(psfontfile,"/CharStrings %d dict dup begin\n",nglyphs);
 	switch(post_format) {
--- abi/src/tools/ttftool/unix/ps.c
+++ abi/src/tools/ttftool/unix/ps.c
@@ -118,7 +118,7 @@
 printPSTrailer(FILE *psfontfile)
 {
   int i,n;
-  char *name;
+  char *name = NULL; /* FIXME: Is it a correct fix? */
 
   fprintf(psfontfile,"/CharStrings %d dict dup begin\n",nglyphs);
   switch(post_format) {
--- abiword-plugins/wp/impexp/OpenDocument/exp/xp/ODe_FontFaceDecls.cpp
+++ abiword-plugins/wp/impexp/OpenDocument/exp/xp/ODe_FontFaceDecls.cpp
@@ -46,7 +46,7 @@
  */
 void ODe_FontFaceDecls::addFont(const UT_UTF8String& rFontName) {
     
-    UT_UTF8String* pFontDecl;
+    UT_UTF8String* pFontDecl = NULL; /* FIXME: Is it a correct fix? */
     
     if ( !rFontName.empty() &&
          !m_fontDecls.contains(rFontName.utf8_str(), pFontDecl) ) {
--- abiword-plugins/wp/impexp/OpenDocument/imp/xp/ODi_TextContent_ListenerState.cpp
+++ abiword-plugins/wp/impexp/OpenDocument/imp/xp/ODi_TextContent_ListenerState.cpp
@@ -463,6 +463,7 @@
         } else {
             UT_ASSERT(UT_SHOULD_NOT_HAPPEN);
             // Unrecognized note class.
+            isFootnote = false; // make gcc happy
         }
         
         if (isFootnote) {
openSUSE Build Service is sponsored by