lib: Fix CID 1273234 Untrusted value as argument