1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Remove senseless if statement.

This commit is contained in:
Tiago Cunha 2009-02-08 13:36:40 +00:00
parent 4264ad761d
commit 33d56a36d4

View File

@ -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> * 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); mask = umask(S_IRWXG | S_IRWXO);
if (data->flags & CMD_AFLAG) if (data->flags & CMD_AFLAG)
f = fopen(data->arg, "a"); f = fopen(data->arg, "a");