Skip to content

Commit 9b69648

Browse files
committed
Fix long lines in lib_calc.c
1 parent c5e416c commit 9b69648

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib_calc.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,13 +517,14 @@ initenv(void)
517517
if (home != NULL) {
518518
free(home);
519519
}
520-
/* try using the home directory of current effective UID from password file */
520+
/* try using the home directory of current effective UID */
521521
ent = (struct passwd *)getpwuid(geteuid());
522-
if (ent == NULL || ent->pw_dir == NULL || ent->pw_dir[0] == '\0') {
522+
if (ent == NULL || ent->pw_dir == NULL ||
523+
ent->pw_dir[0] == '\0') {
523524
/* just assume . is home if all else fails */
524525
home = strdup(".");
525526
} else {
526-
/* use home directory of current effective UID from password file */
527+
/* use home directory of current effective UID */
527528
home = strdup(ent->pw_dir);
528529
}
529530
}

0 commit comments

Comments
 (0)