pthread_create.3: Fix undeclared variable error in example program

Reported-by: Paran Lee <p4ranlee@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-03-03 22:36:18 +01:00
parent e82f7bbb11
commit 9b4d747db7
1 changed files with 1 additions and 1 deletions

View File

@ -312,7 +312,7 @@ thread_start(void *arg)
char *uargv;
printf("Thread %d: top of stack near %p; argv_string=%s\en",
tinfo\->thread_num, &p, tinfo\->argv_string);
tinfo\->thread_num, (void *) &tinfo, tinfo\->argv_string);
uargv = strdup(tinfo\->argv_string);
if (uargv == NULL)