projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xenserver: Fix ovs-vsctl in built RPM by defining /etc as sysconfdir.
[openvswitch]
/
lib
/
vlog.c
diff --git
a/lib/vlog.c
b/lib/vlog.c
index 97a930aca5d1c8fad65b615b2c344fa89aec4964..5496f010e6bfeea5e1d7152d4e0f4381c2845343 100644
(file)
--- a/
lib/vlog.c
+++ b/
lib/vlog.c
@@
-314,7
+314,7
@@
vlog_reopen_log_file(void)
char *
vlog_set_levels_from_string(const char *s_)
{
char *
vlog_set_levels_from_string(const char *s_)
{
- char *save_ptr;
+ char *save_ptr
= NULL
;
char *s = xstrdup(s_);
char *module, *facility;
char *s = xstrdup(s_);
char *module, *facility;
@@
-522,7
+522,7
@@
format_log_message(enum vlog_module module, enum vlog_level level,
p++;
}
field = 0;
p++;
}
field = 0;
- while (isdigit(*p)) {
+ while (isdigit(
(unsigned char)
*p)) {
field = (field * 10) + (*p - '0');
p++;
}
field = (field * 10) + (*p - '0');
p++;
}