summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBi-Ruei, Chiu <biruei.chiu@gmail.com>2019-09-02 17:28:33 +0200
committerBi-Ruei, Chiu <biruei.chiu@gmail.com>2019-09-04 02:27:43 +0200
commitdd9a956ee6007d29ac60814e7eb8f8e7f7c8f331 (patch)
tree5a2fa46acc8451a82885fcbaddba272032c97f65 /lib
parenttests: Update Dockerfile to a valid libyang version (diff)
downloadfrr-dd9a956ee6007d29ac60814e7eb8f8e7f7c8f331.tar.xz
frr-dd9a956ee6007d29ac60814e7eb8f8e7f7c8f331.zip
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')
-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 44a55137f..77183282b 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;
}