gproject: Fix possible use of an uninitialized variable (oops)