fix help output

This commit is contained in:
Janusz Dziedzic
2025-10-14 12:37:16 +02:00
parent 102f3ef23f
commit 3ed71c1a4a
2 changed files with 2 additions and 2 deletions

View File

@@ -1,3 +1,3 @@
file(WRITE "${OUTPUT_FILE}" "const char *helpstr = \" \\")
file(WRITE "${OUTPUT_FILE}" "const char *helpstr = \"")
execute_process(COMMAND base64 -w0 "${INPUT_FILE}" OUTPUT_VARIABLE BASE64_OUT)
file(APPEND "${OUTPUT_FILE}" "${BASE64_OUT}\";\n")

View File

@@ -286,7 +286,7 @@ int wl_help_command(struct ubus_context *ctx, struct ubus_object *obj,
blob_buf_init(&bb, 0);
blob_buf_init(&bo, 0);
if (!blobmsg_add_json_from_string(&bb, helpbuf)) {
if (!helpbuf || !blobmsg_add_json_from_string(&bb, helpbuf)) {
wifimngr_dbg("failed to load help from string\n");
goto err;
}