From: Bastian Dehn Date: Tue, 27 Feb 2024 18:32:44 +0000 (+0100) Subject: malloc right public variable X-Git-Tag: v1.0.0^2~164 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=78f6f1f8195039c10d7a737489daed400c055794;p=sane-kds-s2000w-net.git malloc right public variable --- diff --git a/src/kds_s2000w_net.c b/src/kds_s2000w_net.c index f30ab35..1306c97 100644 --- a/src/kds_s2000w_net.c +++ b/src/kds_s2000w_net.c @@ -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";