diff options
author | Harald Hoyer <harald@redhat.com> | 2015-03-27 12:02:49 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2015-03-27 14:57:38 +0100 |
commit | a7f7d1bde43fc825c49afea3f946f5b4b3d563e0 (patch) | |
tree | e6202adf568f95dbf22d7fb0c51f8c9220a56964 /src/shared/btrfs-util.c | |
parent | 47d45d3cde45d6545367570264e4e3636bc9e345 (diff) |
fix gcc warnings about uninitialized variables
like:
src/shared/install.c: In function ‘unit_file_lookup_state’:
src/shared/install.c:1861:16: warning: ‘r’ may be used uninitialized in
this function [-Wmaybe-uninitialized]
return r < 0 ? r : state;
^
src/shared/install.c:1796:13: note: ‘r’ was declared here
int r;
^
Diffstat (limited to 'src/shared/btrfs-util.c')
-rw-r--r-- | src/shared/btrfs-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/btrfs-util.c b/src/shared/btrfs-util.c index 62b1eff6ae..a95cb8394f 100644 --- a/src/shared/btrfs-util.c +++ b/src/shared/btrfs-util.c @@ -717,7 +717,7 @@ int btrfs_resize_loopback_fd(int fd, uint64_t new_size, bool grow_only) { _cleanup_free_ char *p = NULL, *loop = NULL, *backing = NULL; _cleanup_close_ int loop_fd = -1, backing_fd = -1; struct stat st; - dev_t dev; + dev_t dev = 0; int r; /* btrfs cannot handle file systems < 16M, hence use this as minimum */ |