glib2: don't assign in "if" condition clause