Fix xterm/screen/(any program using just :xxx form) compatibility
This commit is contained in:
parent
20d1d1dc3f
commit
1694c5cb7a
@ -323,7 +323,7 @@ main(argc, argv)
|
||||
}
|
||||
p = hp->h_name;
|
||||
}
|
||||
if (nflag && strcmp(p, "-") && inet_addr(p) == INADDR_NONE) {
|
||||
if (nflag && *p && strcmp(p, "-") && inet_addr(p) == INADDR_NONE) {
|
||||
hp = gethostbyname(p);
|
||||
|
||||
if (hp != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user