Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthieu Dorier
codes
Commits
507c2c42
Commit
507c2c42
authored
Jan 08, 2015
by
Jonathan Jenkins
Browse files
fixed silent error on config fn
parent
480915e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util/configuration.c
View file @
507c2c42
...
...
@@ -123,11 +123,13 @@ int configuration_get_value_relpath(
size_t
length
){
char
*
tmp
=
malloc
(
length
);
configuration_get_value
(
handle
,
section_name
,
key_name
,
annotation
,
tmp
,
int
w
=
configuration_get_value
(
handle
,
section_name
,
key_name
,
annotation
,
tmp
,
length
);
if
(
w
<=
0
)
return
w
;
/* concat the configuration value with the directory */
int
w
=
snprintf
(
value
,
length
,
"%s/%s"
,
(
*
handle
)
->
config_dir
,
tmp
);
w
=
snprintf
(
value
,
length
,
"%s/%s"
,
(
*
handle
)
->
config_dir
,
tmp
);
free
(
tmp
);
return
w
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment