summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/gethostbyht.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libnetworking/libc/gethostbyht.c')
-rw-r--r--cpukit/libnetworking/libc/gethostbyht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/libnetworking/libc/gethostbyht.c b/cpukit/libnetworking/libc/gethostbyht.c
index 65979b7f8a..02a056622c 100644
--- a/cpukit/libnetworking/libc/gethostbyht.c
+++ b/cpukit/libnetworking/libc/gethostbyht.c
@@ -220,7 +220,7 @@ struct hostent* gethostent_r(char* buf, int len)
int curlen;
- if (hostf<0) return 0;
+ if (!hostf) return 0;
fseek(hostf,0,SEEK_END);
curlen=ftell(hostf);
fseek(hostf,0,SEEK_SET);