prevent blank-string segfault