Fixed valgrind uninitialized value warning with switchtec list
Fixed valgrind uninitialized value warning with switchtec list

Conditional jump or move depends on uninitialised value(s)
   at 0x4C2E810: rindex (vg_replace_strmem.c:199)
   by 0x52C6042: __xpg_basename (xpg_basename.c:34)
   by 0x116C97: switchtec_list (linux.c:324)
   by 0x10DCA5: list (main.c:78)
   by 0x111451: do_command (commands.c:230)
   by 0x10BA8C: main (main.c:1680)
Uninitialised value was created by a stack allocation
   at 0x116C0B: switchtec_list (linux.c:293)

Microsemi/switchtec-user,Microsemi/switchtec-user