diff --git a/lib/src/clixon_xpath_ctx.c b/lib/src/clixon_xpath_ctx.c index 37e9e55a..d7b0ae94 100644 --- a/lib/src/clixon_xpath_ctx.c +++ b/lib/src/clixon_xpath_ctx.c @@ -280,7 +280,7 @@ ctx2number(xp_ctx *xc, { int retval = -1; char *str = NULL; - double n; + double n = NAN; switch (xc->xc_type){ case XT_NODESET: diff --git a/test/test_cli_apipath.sh b/test/test_cli_apipath.sh index 2f36c310..f546b1ad 100755 --- a/test/test_cli_apipath.sh +++ b/test/test_cli_apipath.sh @@ -112,6 +112,8 @@ expectfn "$clixon_cli -1 -f $cfg err x" 255 "Config error: api-path syntax error new "err x a" expectfn "$clixon_cli -1 -f $cfg err x a 99" 255 "Config error: api-path syntax error \"/example:x/m1=%s\": rpc malformed-message List key m1 length mismatch : Invalid argument" +endtest + new "Kill backend" # Check if premature kill pid=$(pgrep -u root -f clixon_backend) diff --git a/test/test_rpc.sh b/test/test_rpc.sh index d5d2fc41..13554c94 100755 --- a/test/test_rpc.sh +++ b/test/test_rpc.sh @@ -165,8 +165,9 @@ expectpart "$(curl $CURLOPTS -X POST -H "Content-Type: application/yang-data+jso # test rpc lists with / without keys LIST='foobarbar' +# On docker /fcgi the return is bar,foo,bar new "netconf example rpc input list without key with non-unique entries" -expecteof "$clixon_netconf -qf $cfg" 0 "mandatory$LIST]]>]]>" "^mandatory42$LIST]]>]]>$" +expecteof "$clixon_netconf -qf $cfg" 0 "mandatory$LIST]]>]]>" "^mandatory42" '' 'foobar' "]]>]]>$" LIST='bar1foo2' new "netconf example rpc input list with key"