gio: Fix return of value from void function