aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rc/runscript.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rc/runscript.c b/src/rc/runscript.c
index 0907ce1a..02d9e7ea 100644
--- a/src/rc/runscript.c
+++ b/src/rc/runscript.c
@@ -1101,7 +1101,7 @@ runscript(int argc, char **argv)
int retval, opt, depoptions = RC_DEP_TRACE;
RC_STRING *svc;
char path[PATH_MAX], lnk[PATH_MAX];
- char *dir, *saveDir = NULL, *saveLnk = NULL;
+ char *dir, *save = NULL, *saveLnk = NULL;
char pidstr[10];
size_t l = 0, ll;
const char *file;
@@ -1133,14 +1133,14 @@ runscript(int argc, char **argv)
if (readlink(argv[1], lnk, sizeof(lnk)-1)) {
dir = dirname(path);
if (strchr(lnk, '/')) {
- saveDir = xstrdup(dir);
+ save = xstrdup(dir);
saveLnk = xstrdup(lnk);
dir = dirname(saveLnk);
- if (strcmp(dir, saveDir) == 0)
+ if (strcmp(dir, save) == 0)
file = basename_c(argv[1]);
else
file = basename_c(lnk);
- dir = saveDir;
+ dir = save;
} else
file = basename_c(argv[1]);
ll = strlen(dir) + strlen(file) + 2;
@@ -1150,7 +1150,7 @@ runscript(int argc, char **argv)
free(service);
service = xstrdup(lnk);
}
- free(saveDir);
+ free(save);
free(saveLnk);
}
if (!service)