Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dirplex: Fixed up handledir a bit.
[ashd.git]
/
lib
/
cf.c
diff --git
a/lib/cf.c
b/lib/cf.c
index
f55a620
..
719fcad
100644
(file)
--- a/
lib/cf.c
+++ b/
lib/cf.c
@@
-232,10
+232,11
@@
char *findstdconf(char *name)
if((p2 = strrchr(p, '/')) == NULL)
continue;
*p2 = 0;
if((p2 = strrchr(p, '/')) == NULL)
continue;
*p2 = 0;
- if(!access(t = sprintf
3
("%s/etc/%s", p, name), R_OK)) {
+ if(!access(t = sprintf
2
("%s/etc/%s", p, name), R_OK)) {
free(path);
free(path);
- return(
sstrdup(t)
);
+ return(
t
);
}
}
+ free(t);
}
free(path);
return(NULL);
}
free(path);
return(NULL);