Fix Coverity CID116112 - Untrusted pointer write
Fix Coverity CID116112 - Untrusted pointer write

Unlikely as we produce the values on a trusted process (master), but
check anyway.

profusion/lightmediascanner,profusion/lightmediascanner,profusion/lightmediascanner