gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libextractor] 25/27: avoid NPE on empty value in grep-frie


From: gnunet
Subject: [GNUnet-SVN] [libextractor] 25/27: avoid NPE on empty value in grep-friendly printing
Date: Sun, 15 Oct 2017 21:34:49 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository libextractor.

commit e3e54b4f62f02b7c787ecaf064dba17ee1f1a9ca
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Oct 15 21:25:31 2017 +0200

    avoid NPE on empty value in grep-friendly printing
---
 src/main/extract.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/extract.c b/src/main/extract.c
index 42743553..2492fa92 100644
--- a/src/main/extract.c
+++ b/src/main/extract.c
@@ -383,6 +383,8 @@ print_selected_keywords_grep_friendly (void *cls,
     case EXTRACTOR_METAFORMAT_UNKNOWN:
       break;
     case EXTRACTOR_METAFORMAT_UTF8:
+      if (0 == data_len)
+        return 0;
       if (verbose > 1)
        FPRINTF (stdout,
                 "%s: ",

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]