On Thu, May 5, 2011 at 6:11 PM, John Scipione <jscipione@xxxxxxxxx> wrote: > You should check against NULL before you strcmp like this: [...] > or you risk a segmentation fault, unless you already are already checking > somewhere... Unnecessary since all the strings in question are declared as fixed size character arrays in the structure and thus will never be NULL. Regards, Rene