fix bugs

https://obsproject.com/mantis/view.php?id=83
ttps://obsproject.com/mantis/view.php?id=82
Instead of doing this, removing this if statement entirely would be better.

I also do not see a comparison on dstr_cmp.  dstr_cmp works just like strcmp in that it returns 0 if the strings are equal.

Also, this would break the 80 column limit.