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/runscript.c | |
parent | a2e5c4513e2955bc0a77c401ea12cc210eab305b (diff) |
Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups.
Diffstat (limited to 'src/runscript.c')
-rw-r--r-- | src/runscript.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runscript.c b/src/runscript.c index 200d8d88..550653ab 100644 --- a/src/runscript.c +++ b/src/runscript.c @@ -307,6 +307,7 @@ static void cleanup (void) free (applet); free (prefix); free (service); + free (softlevel); } static int write_prefix (const char *buffer, size_t bytes, bool *prefixed) { @@ -1029,7 +1030,7 @@ int runscript (int argc, char **argv) } #endif - if ((softlevel = getenv ("RC_SOFTLEVEL")) == NULL) { + if ((softlevel = rc_xstrdup (getenv ("RC_SOFTLEVEL"))) == NULL) { /* Ensure our environment is pure Also, add our configuration to it */ tmplist = rc_make_env(); |