Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hotplug-initd-observer: Avoid format error when evData.service is empty #1148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ilario
Copy link
Member

@ilario ilario commented Nov 26, 2024

Fix #1064 (see also #1068)

Please, @LaneaLucy or @pony1k, can you test if this fixes?

Unexpectedly, running a similar code on my laptop with Lua 5.4.7 does not result in an error. Maybe it is related to the older versions of Lua?

@ilario
Copy link
Member Author

ilario commented Nov 28, 2024

I confirm that with Lua 5.1.5 as installed on OpenWrt 23.05.5, the string.format fails when a variable is not existing.

I also tested that adding or "" fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hotplug-initd-observer error
1 participant