Hello,

I have the following patch for HPLIP 1.6.12 to fix an
uninitialized file pointer in the ParseInc function
in api/model.c which is uninitialized in the "bugout:" part
if the first "goto bugout" happens:
------------------------------------------------------------------
--- api/model.c.orig    2006-10-18 20:58:33.000000000 +0200
+++ api/model.c 2007-01-19 15:58:49.000000000 +0100
@@ -269,7 +269,7 @@ static int DelList()
 /* Parse *.inc file. */
 static int ParseInc(char *incFile)
 {
-   FILE *fp;
+   FILE *fp = NULL;
    struct list_head *p;
    LabelRecord *pl;
    char rcbuf[255];
------------------------------------------------------------------

Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5      Mail: [EMAIL PROTECTED]
90409 Nuernberg, Germany                    WWW: http://www.suse.de/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
HPLIP-Devel mailing list
HPLIP-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hplip-devel

Reply via email to