g_malloc(0) and g_malloc0(0) return NULL; simplify