From: Bastian Dehn Date: Sat, 20 Jan 2024 17:24:54 +0000 (+0100) Subject: save contion for get device X-Git-Tag: v1.0.0^2~511 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=3fade240d96ca5ffc6376670b0866e7a46dbfe14;p=sane-kds-s2000w-net.git save contion for get device --- diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index 6f827fe..a9dae4a 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -27,6 +27,9 @@ SANE_Status _sane_kds_s2000w_net_get_devices(SANE_Device*** device_list, SANE_Bool local_only) { printf("kds_s2000w_net get devices\n"); + if (local_only) { + return SANE_STATUS_NO_MEM; + } device = malloc(sizeof(SANE_Device)); device->name = "kds_s2000w_net";