handle 0 return of crypt
[libc-test] / src / functional / crypt.c
index c23a1f9..9629651 100644 (file)
@@ -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()