[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9473 - Extractor/src/plugins
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9473 - Extractor/src/plugins |
Date: |
Thu, 12 Nov 2009 09:07:00 -0700 |
Author: grothoff
Date: 2009-11-12 09:07:00 -0700 (Thu, 12 Nov 2009)
New Revision: 9473
Modified:
Extractor/src/plugins/zipextractor.c
Log:
cleaner
Modified: Extractor/src/plugins/zipextractor.c
===================================================================
--- Extractor/src/plugins/zipextractor.c 2009-11-12 16:04:13 UTC (rev
9472)
+++ Extractor/src/plugins/zipextractor.c 2009-11-12 16:07:00 UTC (rev
9473)
@@ -317,7 +317,7 @@
fprintf (stderr, "Found file %s, Comment: %s\n", info->filename,
info->comment);
-#endif /* */
+#endif
offset += 46 + name_length + extra_length + comment_length;
pos = &data[offset];
@@ -329,7 +329,7 @@
fprintf (stderr,
"Did not find next header in central directory.\n");
-#endif /* */
+#endif
info = start;
while (info != NULL)
{
@@ -394,17 +394,19 @@
}
free (info->filename);
}
- if (strlen (info->comment))
- {
- EXTRACTOR_KeywordList * keyword =
- malloc (sizeof (EXTRACTOR_KeywordList));
- keyword->next = prev;
- keyword->keyword = strdup (info->comment);
- keyword->keywordType = EXTRACTOR_COMMENT;
- prev = keyword;
- }
if (info->comment != NULL)
- free (info->comment);
+ {
+ if (strlen (info->comment) > 0)
+ {
+ EXTRACTOR_KeywordList * keyword =
+ malloc (sizeof (EXTRACTOR_KeywordList));
+ keyword->next = prev;
+ keyword->keyword = strdup (info->comment);
+ keyword->keywordType = EXTRACTOR_COMMENT;
+ prev = keyword;
+ }
+ free (info->comment);
+ }
tmp = info;
info = info->next;
free (tmp);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9473 - Extractor/src/plugins,
gnunet <=