From 8036eaf0a2adaca5609d32fcfef75d11344df7fd Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Mon, 25 May 2026 17:48:11 -0500 Subject: T8916: clear error_message before use --- libvyosconfig/lib/bindings.ml | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3