kopia lustrzana https://gitlab.com/sane-project/backends
2001-05-11 Jochen Eisinger <jochen.eisinger@gmx.de>
* TODO, backend/mustek_pp.c: fixed line-end handling, removed entry from TODO listDEVEL_2_0_BRANCH-1
rodzic
ea3775ca0c
commit
0ae8b87c55
|
@ -2941,14 +2941,14 @@ sane_init (SANE_Int * version_code, SANE_Auth_Callback authorize)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
len = strlen (cp);
|
len = strlen (cp);
|
||||||
if (cp[len - 1] == '\n')
|
/* if (cp[len - 1] == '\n')
|
||||||
cp[--len] = '\0';
|
cp[--len] = '\0';
|
||||||
|
|
||||||
while (len && isspace (cp[len - 1]))
|
while (len && isspace (cp[len - 1]))
|
||||||
cp[--len] = '\0';
|
cp[--len] = '\0';
|
||||||
|
|
||||||
if (!len)
|
if (!len)
|
||||||
continue; /* ignore empty lines */
|
continue;*/ /* ignore empty lines */
|
||||||
|
|
||||||
|
|
||||||
if (strncmp (cp, "option", 6) == 0 && isspace (cp[6]))
|
if (strncmp (cp, "option", 6) == 0 && isspace (cp[6]))
|
||||||
|
|
Ładowanie…
Reference in New Issue