gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 130/208: tool_getparam: fix potentially uninitializ


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 130/208: tool_getparam: fix potentially uninitialized err
Date: Wed, 09 Aug 2017 17:35:27 +0200

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

ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.

commit 17da6750026cf00277aad3a44fd20b1a4cea6406
Author: Jay Satiro <address@hidden>
AuthorDate: Sun Jul 9 12:04:42 2017 -0400

    tool_getparam: fix potentially uninitialized err
---
 src/tool_getparam.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/tool_getparam.c b/src/tool_getparam.c
index 64a84af99..cc2d816f1 100644
--- a/src/tool_getparam.c
+++ b/src/tool_getparam.c
@@ -1634,7 +1634,8 @@ ParameterError getparameter(const char *flag, /* f or 
-long-flag */
         if(!file)
           warnf(global, "Failed to open %s!\n", &nextarg[1]);
         else {
-          if(PARAM_OK == file2memory(&string, &len, file)) {
+          err = file2memory(&string, &len, file);
+          if(!err) {
             /* Allow strtok() here since this isn't used threaded */
             /* !checksrc! disable BANNEDFUNC 2 */
             char *h = strtok(string, "\r\n");

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



reply via email to

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