repository: fix a sparse 'using integer as NULL pointer' warning