Skip to content

Commit

Permalink
libmultipath: stop static analyzer complaint in init_foreign
Browse files Browse the repository at this point in the history
This change doesn't actually fix anything. The code was already safe.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Reviewed-by: Martin Wilck <mwilck@suse.com>
  • Loading branch information
bmarzins authored and mwilck committed Jan 23, 2025
1 parent 70c1724 commit 85ec51e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmultipath/foreign.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static void free_pre(void *arg)
static int _init_foreign(const char *enable)
{
char pathbuf[PATH_MAX];
struct dirent **di;
struct dirent **di = NULL;
struct scandir_result sr;
int r, i;
regex_t *enable_re = NULL;
Expand Down

0 comments on commit 85ec51e

Please sign in to comment.