]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
malloc right public variable
authorBastian Dehn <hhaalo@arcor.de>
Tue, 27 Feb 2024 18:32:44 +0000 (19:32 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 27 Feb 2024 18:32:51 +0000 (19:32 +0100)
src/kds_s2000w_net.c

index f30ab35b0f4c2efa6556e49b048b62f3a236f09e..1306c9771fb35e8bf7c7c85959f557b5c24193d6 100644 (file)
@@ -54,7 +54,7 @@ SANE_Status _sane_kds_s2000w_net_get_devices(SANE_Device*** device_list,
        if (local_only)
                return SANE_STATUS_NO_MEM;
 
-       SANE_Device** own_device_list = malloc(sizeof(SANE_Device*));
+       own_device_list = malloc(sizeof(SANE_Device*));
        device_info = malloc(sizeof(SANE_Device));
        device_info->name = "kds_s2000w_net";
        device_info->vendor = "Kodak";