diff options
| author | Amar Tumballi <amarts@redhat.com> | 2018-12-28 09:56:20 +0530 | 
|---|---|---|
| committer | Amar Tumballi <amarts@redhat.com> | 2018-12-31 06:45:17 +0000 | 
| commit | 63088d8225df025e03a0ea0a0d8fdc3e8e9b9b08 (patch) | |
| tree | ce0523da61aeafb3e70bf24ebc7783621aafbd70 /libglusterfs/src | |
| parent | 3ce7b5dbf069e7bf09c3470753c21efe03339291 (diff) | |
multiple-files: clang-scan fixes
updates: bz#1622665
Change-Id: I9f3a75ed9be3d90f37843a140563c356830ef945
Signed-off-by: Amar Tumballi <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src')
| -rw-r--r-- | libglusterfs/src/run.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/libglusterfs/src/run.c b/libglusterfs/src/run.c index f32c17d9d4b..58f95a7e610 100644 --- a/libglusterfs/src/run.c +++ b/libglusterfs/src/run.c @@ -132,7 +132,7 @@ runner_insert_arg(runner_t *runner, char *arg)      GF_ASSERT(arg); -    if (runner->runerr) +    if (runner->runerr || !runner->argv)          return;      for (i = 0; i < runner->argvlen; i++) { @@ -263,8 +263,8 @@ runner_start(runner_t *runner)      int i = 0;      sigset_t set; -    if (runner->runerr) { -        errno = runner->runerr; +    if (runner->runerr || !runner->argv) { +        errno = (runner->runerr) ? runner->runerr : EINVAL;          return -1;      }  | 
