• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <pthread.h>
2 
3 static int testval = 4;
dodgy_function(pthread_key_t * key)4 void dodgy_function(pthread_key_t* key)
5 {
6     pthread_setspecific(*key, &testval);
7 }
8 
main(void)9 int main(void)
10 {
11     pthread_key_t mykey;
12     pthread_key_create(&mykey, NULL);
13     dodgy_function(&mykey);
14     return 0;
15 }
16