List Info

Thread: sane-1.0.18:teco2.c: variable used before set




sane-1.0.18:teco2.c: variable used before set
user name
2006-09-21 13:19:17
Hello,

I would like to inform you about a tiny bug in teco2.c
see
ht
tps://bugzilla.novell.com/show_bug.cgi?id=205451

I made the compiler happy by this fix
------------------------------------------------------------
--------
--- backend/teco2.c.orig        2005-09-20
10:11:59.000000000 +0200
+++ backend/teco2.c     2006-09-18 14:35:06.000000000 +0200
 -1524,7
+1524,7  teco_request_sense (Teco_Scanner * dev)
 {
   CDB cdb;
   SANE_Status status;
-  size_t size;
+  size_t size = 0;
 
 
   MKSCSI_REQUEST_SENSE (cdb, size);
------------------------------------------------------------
--------
but I don't know if size=0 is a correct setting.


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

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )