From: Szabolcs Nagy Date: Thu, 9 Apr 2015 00:22:42 +0000 (+0000) Subject: handle 0 return of crypt X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=commitdiff_plain;h=57d11f1a1ee4bb265794576939157f5d7537b9bc handle 0 return of crypt --- diff --git a/src/functional/crypt.c b/src/functional/crypt.c index c23a1f9..9629651 100644 --- a/src/functional/crypt.c +++ b/src/functional/crypt.c @@ -5,6 +5,7 @@ static char *p; #define T(h,s,k) p = crypt(k,s); \ + if (!p) p ="*"; \ if (strcmp(p,h)!=0) t_error("crypt(%s, \"%s\") failed: got \"%s\" want \"%s\"\n", #k, s, p, h); int main()