glib: Various minor scan-build fixes
These squash various warnings from `scan-build`. None of them are legitimate bugs, but some of them do improve code readability a bit. Signed-off-by:Philip Withnall <withnall@endlessm.com> Helps: #1767
Please register or sign in to comment