mod_netconf: test-client - config item in copy-config is not optional
diff --git a/src/test-client.c b/src/test-client.c
index 99ef619..9723b0c 100644
--- a/src/test-client.c
+++ b/src/test-client.c
@@ -221,9 +221,7 @@
printf("Configuration data: ");
getline(&line, &len, stdin);
line[(strlen(line) - 1)] = 0;
- if (strlen(line) > 0) {
- json_object_object_add(msg, "config", json_object_new_string(line));
- }
+ json_object_object_add(msg, "config", json_object_new_string(line));
} else if (strcmp(argv[1], "get") == 0) {
/*
* NETCONF <get>