splint warning fixed in g_main.c