]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
remove double init current meta data
authorBastian Dehn <hhaalo@arcor.de>
Sun, 18 Feb 2024 17:24:02 +0000 (18:24 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 18 Feb 2024 17:24:02 +0000 (18:24 +0100)
src/kds_s2000w_handler.c

index 10977c5bfe6b50eaaa3b36c739c0c6a1fcdad4fc..b6b51c6a0e72d7cdcc39436ec3d99ee1ba4767ef 100644 (file)
@@ -186,16 +186,6 @@ void kds_s2000w_handler_open(const char* devicename, void** handle)
        h->read_info.read_size = 0;
        h->read_info.readed_bytes_per_line = 0;
        h->read_info.readed_lines = 0;
-       h->current_metadata.format = 0;
-       h->current_metadata.is_last = 0;
-       h->current_metadata.size = 0;
-       h->current_metadata.bytes_per_line = 0;
-       h->current_metadata.pixels_per_line = 0;
-       h->current_metadata.lines = 0;
-       h->current_metadata.depth = 0;
-       h->current_metadata.valid = 0;
-       h->current_metadata.scanned_all_complete = 0;
-       h->current_metadata.image = NULL;
 
        init_gamma_table();
        image.size = 0;