From patchwork Mon Mar 14 11:57:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arne Jansen X-Patchwork-Id: 632871 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2EC04VR020239 for ; Mon, 14 Mar 2011 12:00:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755022Ab1CNL7g (ORCPT ); Mon, 14 Mar 2011 07:59:36 -0400 Received: from mort.rzone.de ([81.169.144.234]:59949 "EHLO mort.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754774Ab1CNL5v (ORCPT ); Mon, 14 Mar 2011 07:57:51 -0400 Received: from gargravarr.store (gargravarr.store [192.168.42.236]) by mort.rzone.de (Postfix) with ESMTP id 788B9860; Mon, 14 Mar 2011 12:57:49 +0100 (MET) Received: by gargravarr.store (Postfix, from userid 32466) id 54AB7C075; Mon, 14 Mar 2011 12:57:49 +0100 (CET) From: Arne Jansen To: chris.mason@oracle.com, linux-btrfs@vger.kernel.org Subject: [PATCH] btrfs-map-logical: segfaults when no output file is given Date: Mon, 14 Mar 2011 12:57:49 +0100 Message-Id: <1300103869-12180-1-git-send-email-sensille@gmx.net> X-Mailer: git-send-email 1.7.3.4 Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 14 Mar 2011 12:00:04 +0000 (UTC) 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;