projects
/
vimb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b7f18a
)
Fixed wrong error messages if configs where load from file.
author
Daniel Carl
<danielcarl@gmx.de>
Sun, 27 Jan 2013 17:24:17 +0000
(18:24 +0100)
committer
Daniel Carl
<danielcarl@gmx.de>
Sun, 27 Jan 2013 17:24:17 +0000
(18:24 +0100)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
ce103d9
..
bd152eb
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-571,7
+571,9
@@
static void vp_read_config(void)
{
/* load default config */
for (guint i = 0; default_config[i].command != NULL; i++) {
- vp_process_input(default_config[i].command);
+ if (!vp_process_input(default_config[i].command)) {
+ fprintf(stderr, "Invalid default config: %s\n", default_config[i].command);
+ }
}
/* read config from config files */
@@
-587,7
+589,7
@@
static void vp_read_config(void)
if (!g_ascii_isalpha(line[0])) {
continue;
}
- if (vp_process_input(line)) {
+ if (
!
vp_process_input(line)) {
fprintf(stderr, "Invalid config: %s\n", line);
}
}