diff options
author | Theodore Ts'o <tytso@mit.edu> | 2021-08-03 11:03:34 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-08-03 11:03:34 -0400 |
commit | e20b37fac1fc357f0424a99414fcdb0a628bcff7 (patch) | |
tree | 3d7460e81ae33d5cfd0e6203713aa34952bbe629 | |
parent | c8e9e0135b3eb0d8a18387d58645e7cc1062da58 (diff) | |
download | e2fsprogs-e20b37fac1fc357f0424a99414fcdb0a628bcff7.tar.gz |
ss_create_invocation: fix potential unititalized reference in error path
Fixes: eccdde1ff381 ("ss_create_invocation: fix error handling when ...")
Addresses-Coverity-Bug: 1489771
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
-rw-r--r-- | lib/ss/invocation.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ss/invocation.c b/lib/ss/invocation.c index bf5ea0ce6..7d7458a77 100644 --- a/lib/ss/invocation.c +++ b/lib/ss/invocation.c @@ -36,6 +36,7 @@ int ss_create_invocation(const char *subsystem_name, const char *version_string, new_table = (ss_data *) malloc(sizeof(ss_data)); if (!new_table) goto out; + memset(new_table, 0, sizeof(ss_data)); if (table == (ss_data **) NULL) { table = (ss_data **) malloc(2 * size); |