dgibson / dtc

Device Tree Compiler
218 stars 130 forks source link

tests: setprop_inplace: use xstrdup instead of unchecked strdup #63

Closed a3f closed 2 years ago

a3f commented 2 years ago

This is the only strdup instance we have, all others are xstrdup. As strdup is _POSIX_C_SOURCE >= v200809L, which we don't require and we don't check strdup error return here, switch to xstrdup instead. This aligns the test with others that call xfuncs, mainly xmalloc().

dgibson commented 2 years ago

Sorry, I somehow missed this one. Merged now.