diff options
author | Jay Satiro <raysatiro@yahoo.com> | 2017-07-09 12:04:42 -0400 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2017-07-09 12:04:42 -0400 |
commit | 17da6750026cf00277aad3a44fd20b1a4cea6406 (patch) | |
tree | 14d461ec848da100f8f9bf2f0102cee2501dae72 /src | |
parent | 59a0fb24390bc9387d3404e5f3dcde33bf80dffa (diff) |
tool_getparam: fix potentially uninitialized err
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_getparam.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |