summaryrefslogtreecommitdiff
path: root/lib/northbound_sysrepo.c
diff options
context:
space:
mode:
authorBi-Ruei, Chiu <biruei.chiu@gmail.com>2019-09-02 23:28:33 +0800
committerBi-Ruei, Chiu <biruei.chiu@gmail.com>2019-09-04 08:27:43 +0800
commitdd9a956ee6007d29ac60814e7eb8f8e7f7c8f331 (patch)
tree5a2fa46acc8451a82885fcbaddba272032c97f65 /lib/northbound_sysrepo.c
parent6d9effdf8567057d1f6ce34f91df79cccbf40d48 (diff)
lib: Fix erroneously setting pointer values_cnt as NULL
It should be : *values_cnt = 0; not values_cnt = 0; Signed-off-by: Bi-Ruei, Chiu <biruei.chiu@gmail.com>
Diffstat (limited to 'lib/northbound_sysrepo.c')
-rw-r--r--lib/northbound_sysrepo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/northbound_sysrepo.c b/lib/northbound_sysrepo.c
index 44a55137f8..77183282ba 100644
--- a/lib/northbound_sysrepo.c
+++ b/lib/northbound_sysrepo.c
@@ -425,7 +425,7 @@ static int frr_sr_state_cb(const char *xpath, sr_val_t **values,
exit:
list_delete(&elements);
*values = NULL;
- values_cnt = 0;
+ *values_cnt = 0;
return SR_ERR_OK;
}