aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-06-01 20:38:59 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-06-01 20:38:59 +0000
commit940e2ae1fde75fabb4d4eaf7ae3a3b69593d9648 (patch)
tree7cf89afe0728e28e0fedb7b86efaa1b7b3225fde /tmux.c
parent144aed48fa9a40ef832a0c17b400c36519c1d623 (diff)
downloadrtmux-940e2ae1fde75fabb4d4eaf7ae3a3b69593d9648.tar.gz
rtmux-940e2ae1fde75fabb4d4eaf7ae3a3b69593d9648.tar.bz2
rtmux-940e2ae1fde75fabb4d4eaf7ae3a3b69593d9648.zip
endpwent() is not required after getpwuid().
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tmux.c b/tmux.c
index eb6e5c3f..0327445f 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.122 2009-05-26 18:30:51 nicm Exp $ */
+/* $Id: tmux.c,v 1.123 2009-06-01 20:38:59 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -353,7 +353,6 @@ main(int argc, char **argv)
pw = getpwuid(getuid());
if (pw != NULL)
home = pw->pw_dir;
- endpwent();
}
xasprintf(&cfg_file, "%s/%s", home, DEFAULT_CFG);
if (access(cfg_file, R_OK) != 0) {
@@ -380,7 +379,6 @@ main(int argc, char **argv)
pw = getpwuid(getuid());
if (pw != NULL)
shell = pw->pw_shell;
- endpwent();
if (shell == NULL || *shell == '\0')
shell = _PATH_BSHELL;
}