small cleanup. no functional change.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36093 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matt Madia 2010-04-08 20:02:14 +00:00
parent 4c5da317dc
commit bf77538c1d

View File

@ -214,7 +214,7 @@ print_string(const u_int8_t* buf, int len)
if (!isprint(buf[i]) && buf[i] != '\0')
break;
if (isspace(buf[i]))
hasspc++;
hasspc++;
}
if (i == len) {
if (hasspc || len == 0 || buf[0] == '\0')