diff options
author | Roy Marples <roy@marples.name> | 2007-09-25 15:38:21 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-09-25 15:38:21 +0000 |
commit | 1e4e8ed27ae95096255283e92a75738bc7e296e5 (patch) | |
tree | 5f152e91cce64bc2c9b0c6336b4078e470ac14da /src/rc-update.c | |
parent | a2e5c4513e2955bc0a77c401ea12cc210eab305b (diff) |
Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups.
Diffstat (limited to 'src/rc-update.c')
-rw-r--r-- | src/rc-update.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rc-update.c b/src/rc-update.c index fc9ef504..34f10b91 100644 --- a/src/rc-update.c +++ b/src/rc-update.c @@ -208,8 +208,11 @@ int rc_update (int argc, char **argv) eerror ("%s: service `%s' does not exist", applet, service); else { retval = EXIT_SUCCESS; - if (! runlevels) - rc_strlist_add (&runlevels, rc_get_runlevel ()); + if (! runlevels) { + runlevel = rc_get_runlevel (); + rc_strlist_add (&runlevels, runlevel); + free (runlevel); + } STRLIST_FOREACH (runlevels, runlevel, i) { if (action & DOADD) { if (! add (runlevel, service)) |