summaryrefslogtreecommitdiff
path: root/libvyosconfig
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2026-05-25 17:48:11 -0500
committerJohn Estabrook <jestabro@vyos.io>2026-05-28 08:31:32 -0500
commit8036eaf0a2adaca5609d32fcfef75d11344df7fd (patch)
treeb6d8def885cdd5f207d45c5656c71532e3b38f9b /libvyosconfig
parent43c3fe19e30bcd1747668cde9b148025c713840e (diff)
downloadvyos-1x-8036eaf0a2adaca5609d32fcfef75d11344df7fd.tar.gz
vyos-1x-8036eaf0a2adaca5609d32fcfef75d11344df7fd.zip
T8916: clear error_message before use
Diffstat (limited to 'libvyosconfig')
-rw-r--r--libvyosconfig/lib/bindings.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/libvyosconfig/lib/bindings.ml b/libvyosconfig/lib/bindings.ml
index 0759edae2..d35df0e0b 100644
--- a/libvyosconfig/lib/bindings.ml
+++ b/libvyosconfig/lib/bindings.ml
@@ -497,6 +497,7 @@ let subtree_from_partial r_ptr c_ptr i_ptr path =
let input = Root.get i_ptr in
let path = split_on_whitespace path in
try
+ error_message := "";
let ct_ret = (CD.subtree_from_partial[@alert "-exn"]) rt ct input path in
Ctypes.Root.create ct_ret
with