hplip/fix-uninitialized-variables.diff

23 lines
699 B
Diff

--- ip/xmatrix.c.orig 2004-02-18 23:43:44.000000000 +0100
+++ ip/xmatrix.c 2005-05-17 13:48:17.000000000 +0200
@@ -380,7 +380,7 @@
while (pwOut < (WORD*)pOutAfter)
{
- int prod0, prod1, prod2;
+ int prod0 = 0, prod1 = 0, prod2 = 0;
/* The fixed-point calculations below are as follows:
* 17.15 = input pixel
--- 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];