diff mbox series

procd fix

Message ID 94b73809-c6fe-4aef-8488-bf4ab95de542@gmail.com
State New
Headers show
Series procd fix | expand

Commit Message

Paul Donald March 18, 2024, 2:21 p.m. UTC
Maybe needs Rafał Miłecki <rafal@milecki.pl> approval?


=======





=======


PR at https://github.com/openwrt/openwrt/pull/14597/
diff mbox series

Patch

diff --git a/package/system/procd/files/procd.sh 
b/package/system/procd/files/procd.sh
index 8ee25f4f08b47..9d936bb7e9778 100644
--- a/package/system/procd/files/procd.sh
+++ b/package/system/procd/files/procd.sh
@@ -601,7 +601,7 @@  procd_add_mdns_service() {
  	json_add_int port "$port"
  	[ -n "$1" ] && {
  		json_add_array txt
-		for txt in "$@"; do json_add_string "" "$txt"; done
+		for txt in "$@"; do [ -n "$txt" ] && json_add_string "" "$txt"; done
  		json_select ..
  	}
  	json_select ..