diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-11-22 00:13:34 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-11-22 00:13:34 +0000 |
commit | 1a41a3b48fe301b994b723aec569dd3a7083c5a5 (patch) | |
tree | 4f96d95ca7d1abda375c05cede88a18193b64a3d /cmd.c | |
parent | 1527ed0ff8ca9da9d297a644ca23bda87b9ffdac (diff) | |
download | rtmux-1a41a3b48fe301b994b723aec569dd3a7083c5a5.tar.gz rtmux-1a41a3b48fe301b994b723aec569dd3a7083c5a5.tar.bz2 rtmux-1a41a3b48fe301b994b723aec569dd3a7083c5a5.zip |
Sync OpenBSD patchset 559:
Use home from struct passwd if HOME is empty as well as if it is NULL, and fix
a style nit. Both from Tiago Cunha.
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: cmd.c,v 1.131 2009-11-19 22:20:04 tcunha Exp $ */ +/* $Id: cmd.c,v 1.132 2009-11-22 00:13:34 tcunha Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -277,9 +277,8 @@ cmd_free(struct cmd *cmd) size_t cmd_print(struct cmd *cmd, char *buf, size_t len) { - if (cmd->entry->print == NULL) { + if (cmd->entry->print == NULL) return (xsnprintf(buf, len, "%s", cmd->entry->name)); - } return (cmd->entry->print(cmd, buf, len)); } |