It's probably unnecessary, but for a complicated function, it's
probably better just to keep the static analyzer happy.
Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit
e05e2b4f89a00fadc1032ad7720fefdd99dca029)
bool sockets_only)
{
char sym[PATH_MAX] = { '\0' };
- struct stat sb;
+ struct stat sb = { .st_mode = 0 };
struct file *f, *prev;
if (ul_path_readlink(pc, sym, sizeof(sym), name) < 0)
uint64_t start, end, offset, ino;
unsigned long major, minor;
enum association assoc = ASSOC_MEM;
- struct stat sb;
+ struct stat sb = { .st_mode = 0 };
struct file *f, *prev;
char *path, modestr[5];
dev_t devno;