projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fd9af2
)
cfg: Fix functions for retrieving keys.
author
Ben Pfaff
<blp@nicira.com>
Thu, 18 Dec 2008 20:43:57 +0000
(12:43 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Thu, 18 Dec 2008 20:44:23 +0000
(12:44 -0800)
They didn't work. At all.
vswitchd/cfg.c
patch
|
blob
|
history
diff --git
a/vswitchd/cfg.c
b/vswitchd/cfg.c
index aa33bddb8657bd0b9ef5a80b57161d571d5f201e..2a1424dd6c840e75944dd2f8817fb24fb5bc432b 100644
(file)
--- a/
vswitchd/cfg.c
+++ b/
vswitchd/cfg.c
@@
-717,7
+717,7
@@
get_nth_value(int idx, const char *key)
{
char **p = find_key_le(key);
char **q = find_key_ge(key);
- return idx < q - p ? extract_value(
key
) : NULL;
+ return idx < q - p ? extract_value(
p[idx]
) : NULL;
}
#if 0