mirror of
https://dev.iopsys.eu/hal/wifimngr.git
synced 2025-12-20 01:11:11 +08:00
fix help output
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user