]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
save contion for get device
authorBastian Dehn <hhaalo@arcor.de>
Sat, 20 Jan 2024 17:24:54 +0000 (18:24 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 20 Jan 2024 17:24:54 +0000 (18:24 +0100)
src/kds_s2000w_net.c

index 6f827fea6c0513839541993d9e63ce7ea2abf094..a9dae4a4dbf528db5ecac83912ca941eebdb782e 100644 (file)
@@ -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";