Update trace.c

Fixing a compiling error