aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libshare
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2015-11-09 12:10:02 -0800
committerBrian Behlendorf <[email protected]>2015-11-09 12:15:19 -0800
commit98401d23611905e08d4c449d46c15e85d44cff72 (patch)
tree86b3e46956a92c5a90081132cf557c4a37443a20 /lib/libshare
parentb23d54305a6d4c00e7c815b15703ccd5ab180f2f (diff)
Fix maybe uninitialized
As of gcc 5.1.1 20150618 (Red Hat 5.1.1-4) the -Werror=maybe-uninitialized check detects that 'snapname' in recv_incremental_replication() may not be initialized. Explicitly initialize the variable to resolved the warning. libzfs_sendrecv.c: In function ‘recv_incremental_replication’: libzfs_sendrecv.c:2019:2: error: ‘snapname’ may be used uninitialized in (void) snprintf(buf, sizeof (buf), "%s@%s", fsname, snapname); Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'lib/libshare')
0 files changed, 0 insertions, 0 deletions