From da25ff7ed14370bef2f5879388f6e05d29ce5351 Mon Sep 17 00:00:00 2001 From: Jakob Olsson <jakob.olsson@iopsys.eu> Date: Fri, 4 Oct 2019 09:28:18 +0200 Subject: [PATCH] remove some redundant print and include --- src/json-editor.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/json-editor.c b/src/json-editor.c index d104b2c..04c0366 100644 --- a/src/json-editor.c +++ b/src/json-editor.c @@ -2,7 +2,6 @@ #include <string.h> #include <stdio.h> #include <stdbool.h> -#include <pthread.h> #include <libubox/blobmsg.h> #include <libubox/blobmsg_json.h> @@ -350,10 +349,8 @@ int json_object_set_by_string_delimiter(struct json_object **src, char *fmt, cha int idx[32]; int len; - if (!*src) { - printf("lets allocate new object\n"); + if (!*src) *src = json_object_new_object(); - } ptr = outer_obj = *src; if (!fmt) -- GitLab