diff mbox

Btrfs-progs: Fix trival compiler error in cmds-qgroup.c

Message ID 1359223833-8214-1-git-send-email-gene@czarc.net (mailing list archive)
State Under Review, archived
Headers show

Commit Message

Gene Czarcinski Jan. 26, 2013, 6:10 p.m. UTC
The compiler does not realize that usage() never returns.
Initializing the variable keeps it quiet.
Signed-off-by: Gene Czarcinski <gene@czarc.net>
---
 cmds-qgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Sterba Jan. 28, 2013, 5:07 p.m. UTC | #1
On Sat, Jan 26, 2013 at 01:10:33PM -0500, Gene Czarcinski wrote:
> The compiler does not realize that usage() never returns.
> Initializing the variable keeps it quiet.
> Signed-off-by: Gene Czarcinski <gene@czarc.net>

Queued for integration. Thanks.

david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/cmds-qgroup.c b/cmds-qgroup.c
index 70019d0..3ac2e14 100644
--- a/cmds-qgroup.c
+++ b/cmds-qgroup.c
@@ -338,7 +338,7 @@  static int cmd_qgroup_limit(int argc, char **argv)
 	int ret = 0;
 	int fd;
 	int e;
-	char *path;
+	char *path = NULL;
 	struct btrfs_ioctl_qgroup_limit_args args;
 	unsigned long long size;
 	int compressed = 0;