]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
fix init with empty value
authorBastian Dehn <hhaalo@arcor.de>
Fri, 19 Jan 2024 21:22:28 +0000 (22:22 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 19 Jan 2024 21:22:28 +0000 (22:22 +0100)
src/kds_s2000w_net.c

index cc636934371f4c54d7a06e84445a0abf48e94a3d..f733d74a5fa41e14b8bf5445f1a5b99c227acc82 100644 (file)
@@ -18,7 +18,7 @@ SANE_Status _sane_kds_s2000w_net_init(SANE_Int* version_code, SANE_Auth_Callback
 
        device = malloc(sizeof(SANE_Device));
        device->name = "kds_s2000w_net";
-       device->vendor = 0;
+       device->vendor = "Kodak";
        device->model = "Kodak Alaris s2000w series";
        device->type = "document scanner";
 
@@ -77,6 +77,8 @@ SANE_Status _sane_kds_s2000w_net_control_option(SANE_Handle handle,
 {
        printf("kds_s2000w_net control option\n");
 
+       int int_value = 0;
+       value = (void*) &int_value;
        return SANE_STATUS_GOOD;
 }