[patch] HPLIP 0.9.5: avoid compiler warning

Tim Waugh <[email protected]> Mon, 3 Oct 2005 13:18:11 +0100
Newsgroups gmane.linux.drivers.hpofficejet.devel
Message-ID <[email protected]>
Hi,

This patch avoids a compiler warning:

--- hplip-0.9.5/scan/sane/pml.c.warnings	2005-10-03 13:12:06.000000000 +0100
+++ hplip-0.9.5/scan/sane/pml.c	2005-10-03 13:12:19.000000000 +0100
@@ -1058,6 +1058,7 @@
    {
       /* No more scan data, flush ipconvert pipeline. */
       input = 0;
+      inputAvail = 0;
       wResult = ipConvert(hpaio->hJob, inputAvail, input, &inputUsed, &inputNextPos, outputAvail, output, &outputUsed, &outputThisPos);
       if (wResult & (IP_INPUT_ERROR | IP_FATAL_ERROR))
       {

The warning is:

scan/sane/pml.c:1061: warning: 'inputAvail' is used uninitialized in
this function

Tim.
*/


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl