commit 324eff476dae560dda4ac99b71c776671da1a031
parent 8fe05859bc73b9ce34b159d0a79bf9c8999fb7e9
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Wed, 7 Mar 2018 12:15:12 +0100
fix actual object emptying.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c
@@ -1171,7 +1171,7 @@ create_response (void *cls,
while (NULL != (token_path = strtok (NULL, ".")));
/* here, element is what needs to be emptied. */
- if (-1 == json_object_update (element, json_object ()))
+ if (-1 == json_object_clear (element))
{
TALER_LOG_ERROR ("Could not empty the object\n");
delete_path[0] = '\0';