Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rc-misc.c: Allocate memory for 'file'
This is a partial revert of commit 8e02406 ("rc-misc.c: remove references to PATH_MAX"), which changed 'file' to a null pointer with no associated storage. ../openrc-0.44.10/src/rc/rc-misc.c: In function ‘_rc_deptree_load’: ../openrc-0.44.10/src/rc/rc-misc.c:392:33: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 392 | eerror("Clock skew detected with `%s'", file); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 8e02406 ("rc-misc.c: remove references to PATH_MAX") Closes: #493
- Loading branch information