From 0d0b37f9a81003d206e3c6853dab32a8b5a31428 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 18 Dec 2008 12:43:57 -0800 Subject: [PATCH] cfg: Fix functions for retrieving keys. They didn't work. At all. --- vswitchd/cfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vswitchd/cfg.c b/vswitchd/cfg.c index aa33bddb..2a1424dd 100644 --- 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 -- 2.30.2