Updated rdtset.c and main.c to fix static analysis warnings.
Updated rdtset.c and main.c to fix static analysis warnings.

Change-Id: I74225e6fd50a1ff596a597cdb5184c9628bbd80e

01org/intel-cmt-cat,01org/intel-cmt-cat,01org/intel-cmt-cat