Ver código fonte

was referencing a descoped string

tarfeef101 7 anos atrás
pai
commit
44cb32afc9
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      kern/thread/synch.c

+ 1 - 1
kern/thread/synch.c

@@ -158,7 +158,7 @@ struct lock * lock_create(const char * name)
 
   lock->lk_name = kstrdup(name);
   
-  struct wchan * wc = wchan_create(name);
+  struct wchan * wc = wchan_create(lock->lk_name);
   
   if (lock->lk_name == NULL || wc == NULL)
   {