diff mbox

btrfs-map-logical: segfaults when no output file is given

Message ID 1300103869-12180-1-git-send-email-sensille@gmx.net (mailing list archive)
State New, archived
Headers show

Commit Message

Arne Jansen March 14, 2011, 11:57 a.m. UTC
None
diff mbox

Patch

diff --git a/btrfs-map-logical.c b/btrfs-map-logical.c
index a109c6a..aa4b5b5 100644
--- a/btrfs-map-logical.c
+++ b/btrfs-map-logical.c
@@ -175,6 +175,7 @@  int main(int ac, char **av)
 		exit(1);
 	}
 
+	info_file = stdout;
 	if (output_file) {
 		if (strcmp(output_file, "-") == 0) {
 			out_fd = 1;