From 284ff7a5431bef273e0fb8da67b948a31ba4293f Mon Sep 17 00:00:00 2001 From: Henning Geinitz Date: Wed, 2 Apr 2003 15:02:42 +0000 Subject: [PATCH] Initialize global variables in sane_init. --- ChangeLog | 3 ++- backend/artec.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e16267d3e..a3c903da1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,7 +14,8 @@ as active maintainer because his primary email address bounces, and he doesn't respond to mails to other addresses. Marked email addresses and website as dead. Fixed AT3 misdectection that was - on the TODO list for some time. + on the TODO list for some time. Initialize global variables in + sane_init. 2003-03-31 Henning Meier-Geinitz diff --git a/backend/artec.c b/backend/artec.c index ddd223a7a..253a817a5 100644 --- a/backend/artec.c +++ b/backend/artec.c @@ -2580,6 +2580,7 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize) DBG (7, "sane_init()\n" ); + devlist = 0; /* make sure these 2 are empty */ strcpy (artec_vendor, ""); strcpy (artec_model, "");