* [PATCH] Btrfs-progs: Fix trival compiler error in cmds-qgroup.c
@ 2013-01-26 18:10 Gene Czarcinski
2013-01-28 17:07 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Gene Czarcinski @ 2013-01-26 18:10 UTC (permalink / raw)
To: linux-btrfs; +Cc: Gene Czarcinski
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(-)
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;
--
1.8.1
--
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-
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Btrfs-progs: Fix trival compiler error in cmds-qgroup.c
2013-01-26 18:10 [PATCH] Btrfs-progs: Fix trival compiler error in cmds-qgroup.c Gene Czarcinski
@ 2013-01-28 17:07 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2013-01-28 17:07 UTC (permalink / raw)
To: Gene Czarcinski; +Cc: linux-btrfs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-28 17:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-26 18:10 [PATCH] Btrfs-progs: Fix trival compiler error in cmds-qgroup.c Gene Czarcinski
2013-01-28 17:07 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).