chiark
/
gitweb
/
~mdw
/
runlisp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib.c (config_set_var_n): Return a pointer even if we don't change the var.
[runlisp]
/
lib.c
diff --git
a/lib.c
b/lib.c
index 4f93285f048cc3e8c1aaeb00f70da85f0d9cd8bf..edb6e332ba0ca9ea5ffbd8cd44c4f2c827c23713 100644
(file)
--- a/
lib.c
+++ b/
lib.c
@@
-1089,7
+1089,7
@@
struct config_var *config_set_var_n(struct config *conf,
struct config_var *var =
config_find_var_n(conf, sect, CF_CREAT, name, namelen);
struct config_var *var =
config_find_var_n(conf, sect, CF_CREAT, name, namelen);
- if (var->f&~f&CF_OVERRIDE) return;
+ if (var->f&~f&CF_OVERRIDE) return
(var)
;
free(var->val); var->val = xstrndup(value, valuelen); var->n = valuelen;
var->f = f;
return (var);
free(var->val); var->val = xstrndup(value, valuelen); var->n = valuelen;
var->f = f;
return (var);