summaryrefslogtreecommitdiffstats
path: root/cmd-save-buffer.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2009-02-08 13:36:40 +0000
committerTiago Cunha <tcunha@gmx.com>2009-02-08 13:36:40 +0000
commit33d56a36d48933660c35333f4e031d0431540491 (patch)
tree74691c5ae592ed2f1c14cf0b0d5d18dd90cc2cfc /cmd-save-buffer.c
parent4264ad761da733edf19cdbe711a8101e43144112 (diff)
Remove senseless if statement.
Diffstat (limited to 'cmd-save-buffer.c')
-rw-r--r--cmd-save-buffer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd-save-buffer.c b/cmd-save-buffer.c
index 696e9545..a2bc29cd 100644
--- a/cmd-save-buffer.c
+++ b/cmd-save-buffer.c
@@ -1,4 +1,4 @@
-/* $Id: cmd-save-buffer.c,v 1.3 2009-01-19 18:23:40 nicm Exp $ */
+/* $Id: cmd-save-buffer.c,v 1.4 2009-02-08 13:36:40 tcunha Exp $ */
/*
* Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org>
@@ -67,9 +67,6 @@ cmd_save_buffer_exec(struct cmd *self, struct cmd_ctx *ctx)
}
}
- if (pb == NULL)
- return (0);
-
mask = umask(S_IRWXG | S_IRWXO);
if (data->flags & CMD_AFLAG)
f = fopen(data->arg, "a");