swid_generator software-id does not generate empty lines any more
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 14 Apr 2014 09:25:41 +0000 (11:25 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 15 Apr 2014 07:21:06 +0000 (09:21 +0200)
src/libpts/swid/swid_inventory.c

index 9e85647..062bf4e 100644 (file)
@@ -156,11 +156,6 @@ static status_t generate_tags(private_swid_inventory_t *this, char *generator,
                        unique_sw_id = chunk_create(separator, len - (separator - line));
                        tag_id = swid_tag_id_create(tag_creator, unique_sw_id, tag_file_path);
                        this->list->insert_last(this->list, tag_id);
-
-                       if (fgets(line, sizeof(line), file) <= 0)
-                       {
-                               goto end;
-                       }
                }
        }