projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be25fa8
)
Avert GCC false-positive warning.
author
Ben Pfaff
<blp@nicira.com>
Mon, 28 Jul 2008 17:11:51 +0000
(10:11 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 28 Jul 2008 17:11:58 +0000
(10:11 -0700)
lib/vlog.c
patch
|
blob
|
history
diff --git
a/lib/vlog.c
b/lib/vlog.c
index 1cc24f85542a5bc9b39e03acb154919b0d3d799c..6e098ef964ec8c1a9b254ebfbd403e793995101e 100644
(file)
--- a/
lib/vlog.c
+++ b/
lib/vlog.c
@@
-350,7
+350,8
@@
vlog(enum vlog_module module, enum vlog_level level, const char *message, ...)
[VLL_WARN] = LOG_WARNING,
[VLL_DBG] = LOG_DEBUG,
};
- char *line, *save_ptr;
+ char *save_ptr = NULL;
+ char *line;
for (line = strtok_r(s + time_len, "\n", &save_ptr); line != NULL;
line = strtok_r(NULL, "\n", &save_ptr)) {