mirror of
https://github.com/linux-msm/tqftpserv.git
synced 2026-02-25 13:12:17 -08:00
98d162c9ff5327331cec7fb92ca375073adfa617
The dirname() function can and will modify the parameter, so if we call
dirname() twice on the same firmware_value parameter we will get
separate results messing up our names.
Copy the firmware_value value before passing it to dirname(). Also let's
just do this operation once to save copy-pasting some code.
Fixes: a4c755d ("Use firmware path from sysfs")
Description
Languages
C
96.1%
Meson
3.9%