minor change ScMalloc in global-var.c