chiark
/
gitweb
/
~mdw
/
runlisp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
82cc083
)
lib.c (config_set_var_n): Return a pointer even if we don't change the var.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 13 May 2021 13:48:39 +0000
(14:48 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 13 May 2021 13:56:08 +0000
(14:56 +0100)
Spotted by old GCC; not sure why newer versions are silent here.
lib.c
patch
|
blob
|
blame
|
history
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);
- 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);