projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0422df
)
Minor refactoring.
author
markus schnalke
<meillo@marmaro.de>
Wed, 21 Mar 2012 19:43:27 +0000
(20:43 +0100)
committer
markus schnalke
<meillo@marmaro.de>
Wed, 21 Mar 2012 19:43:27 +0000
(20:43 +0100)
uip/aliasbr.c
patch
|
blob
|
history
diff --git
a/uip/aliasbr.c
b/uip/aliasbr.c
index
7b7bcef
..
baeab6f
100644
(file)
--- a/
uip/aliasbr.c
+++ b/
uip/aliasbr.c
@@
-360,8
+360,8
@@
addgroup(struct aka *ak, char *grp)
}
#ifdef DBMPWD
if ((pw = getpwnam(gp))) {
- hmalloc(pw);
- add_aka(ak, gp);
+ hmalloc(pw);
+ add_aka(ak, gp);
}
}
#endif /* DBMPWD */
@@
-516,10
+516,11
@@
hmalloc(struct passwd *pw)
p->h_shell = getcpy(pw->pw_shell);
p->h_ngrps = 0;
p->h_next = NULL;
- if (hometail != NULL)
- hometail->h_next = p;
- if (homehead == NULL)
+ /* append to end */
+ if (!homehead)
homehead = p;
+ if (hometail)
+ hometail->h_next = p;
hometail = p;
return p;