From 9b696489218dc406581c97aba2c8708a162ee33a Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Wed, 28 Nov 2018 12:33:10 -0800 Subject: [PATCH] Fix long lines in lib_calc.c --- lib_calc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib_calc.c b/lib_calc.c index c44d3e6..d5ffd1e 100644 --- a/lib_calc.c +++ b/lib_calc.c @@ -517,13 +517,14 @@ initenv(void) if (home != NULL) { free(home); } - /* try using the home directory of current effective UID from password file */ + /* try using the home directory of current effective UID */ ent = (struct passwd *)getpwuid(geteuid()); - if (ent == NULL || ent->pw_dir == NULL || ent->pw_dir[0] == '\0') { + if (ent == NULL || ent->pw_dir == NULL || + ent->pw_dir[0] == '\0') { /* just assume . is home if all else fails */ home = strdup("."); } else { - /* use home directory of current effective UID from password file */ + /* use home directory of current effective UID */ home = strdup(ent->pw_dir); } }