Fixes this warning from clang:
main.c:628:11: warning: variable 'reply' is used uninitialized
whenever 'if' condition is true [-Wsometimes-uninitialized]
...
main.c:609:32: note: initialize the variable 'reply' to silence this warning
Fixes:
506d253b7f89 "multipath: delegate dangerous commands to multipathd"
Reported-by: Xose Vazquez Perez <xose.vazquez@gmail.com>
Signed-off-by: Martin Wilck <mwilck@suse.com>
enum devtypes dev_type, const struct config *conf)
{
int fd;
- char command[1024], *p, *reply;
+ char command[1024], *p, *reply = NULL;
int n, r = 0;
fd = mpath_connect();