(hsearch_r): Add back ensurance that hval is not zero.
[glibc/history.git] / stdlib / tst-putenvmod.c
blob7c0c337d3f163a4d4e547f63b105c514c3956032
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <unistd.h>
5 void
6 __attribute ((constructor))
7 init (void)
9 puts ("init DSO");
11 static char str[] = "SOMETHING_NOBODY_USES=something_else";
12 if (putenv (str) != 0)
14 puts ("putenv failed");
15 _exit (1);