According to Coverity (CID 1008422), as dlpath is a character array
so the omparson to NULL makes no sense. It appears it is always
assigned to something in the previous "if" so perhaps we should
get rid of it completely.
While here remove redundant bracket as it appears to be the style
exception wrt the rest of the code.