diff options
author | Dave Barach <dave@barachs.net> | 2018-10-03 11:45:06 -0400 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-10-03 17:10:44 +0000 |
commit | 7cd368f7be4ff0eb06e0b4975e7c2695ad788b44 (patch) | |
tree | e05dc366af65641953d0643cd443115b5b42f9b2 /src/plugins | |
parent | 3b4a6a1bb0cc5059b1965282463c03ef4d14f874 (diff) |
VPP-1440: clean up coverity warnings
Change-Id: Ie315d4e83c0575d82aee0369ef50e8dd2dad6a2a
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/memif/memif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/memif/memif.c b/src/plugins/memif/memif.c index 42325dfd7c0..c01b8dc98fa 100644 --- a/src/plugins/memif/memif.c +++ b/src/plugins/memif/memif.c @@ -682,8 +682,8 @@ memif_socket_filename_add_del (u8 is_add, u32 sock_id, u8 * sock_filename) vec_add1 (dir, '\0'); } - if (((stat (dir, &file_stat) == -1) || (!S_ISDIR (file_stat.st_mode))) - && (idx != 0)) + if (((dir == 0) || (stat (dir, &file_stat) == -1) + || (!S_ISDIR (file_stat.st_mode))) && (idx != 0)) { vec_free (dir); return VNET_API_ERROR_INVALID_ARGUMENT; |