[package] fix double g typo
[openwrt/svn-archive/archive.git] / toolchain / uClibc / patches / 004-fix_gethostent_r_failure_retval.patch
1 --- a/libc/inet/resolv.c
2 +++ b/libc/inet/resolv.c
3 @@ -1700,7 +1700,7 @@ void sethostent (int stay_open)
4 int gethostent_r(struct hostent *result_buf, char *buf, size_t buflen,
5 struct hostent **result, int *h_errnop)
6 {
7 - int ret;
8 + int ret = HOST_NOT_FOUND;
9
10 __UCLIBC_MUTEX_LOCK(mylock);
11 if (__gethostent_fp == NULL) {