[sane-devel] sane-1.0.18:teco2.c: variable used before set
Johannes Meixner
jsmeix at suse.de
Thu Sep 21 13:19:17 UTC 2006
Hello,
I would like to inform you about a tiny bug in teco2.c
see
https://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: jsmeix at suse.de
90409 Nuernberg, Germany WWW: http://www.suse.de/
More information about the sane-devel
mailing list