From ea653fab7e923d82e2c212a90d0ad65aac8aa482 Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Fri, 9 May 2003 01:36:20 +0000 Subject: [PATCH] a nice warning when no config file is present ... --- backend/avision.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/avision.c b/backend/avision.c index 43cefe779..2d3646e78 100644 --- a/backend/avision.c +++ b/backend/avision.c @@ -4304,7 +4304,11 @@ sane_init (SANE_Int* version_code, SANE_Auth_Callback authorize) *version_code = SANE_VERSION_CODE (V_MAJOR, V_MINOR, BACKEND_BUILD); fp = sanei_config_open (AVISION_CONFIG_FILE); - if (fp > 0) + if (fp <= 0) + { + DBG(1, "sane_init: No config file present!\n"); + } + else { /* first parse the config file */ while (sanei_config_read (line, sizeof (line), fp))