X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=run-command.c;h=f40df01c77247c404062c9dfcbb9dddf534544e1;hb=93db6eef04539e822b6786ae12f1ea4db75635bb;hp=7ef5cc712a924a48f8ab94defa8d48125de0be0c;hpb=7baf6588c5a5f4a1b616e19ddc9430592b608a6f;p=thirdparty%2Fgit.git diff --git a/run-command.c b/run-command.c index 7ef5cc712a..f40df01c77 100644 --- a/run-command.c +++ b/run-command.c @@ -1099,7 +1099,7 @@ static NORETURN void die_async(const char *err, va_list params) static int async_die_is_recursing(void) { void *ret = pthread_getspecific(async_die_counter); - pthread_setspecific(async_die_counter, (void *)1); + pthread_setspecific(async_die_counter, &async_die_counter); /* set to any non-NULL valid pointer */ return ret != NULL; }