Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 2021 00:28:08 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c20c7a312262 - stable/13 - libc/tests/stdlib/dynthr_mod/dynthr_mod.c: mark dummy as used
Message-ID:  <202112060028.1B60S85X084930@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=c20c7a312262b484699b72a7b407bd58981c4d6d

commit c20c7a312262b484699b72a7b407bd58981c4d6d
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2021-11-28 03:25:28 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2021-12-06 00:23:45 +0000

    libc/tests/stdlib/dynthr_mod/dynthr_mod.c: mark dummy as used
    
    (cherry picked from commit a64a3b798825bc176ae052fc3ead88566b60ba7d)
---
 lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c b/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c
index 4f5622f47a81..c19a1a54a8b6 100644
--- a/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c
+++ b/lib/libc/tests/stdlib/dynthr_mod/dynthr_mod.c
@@ -51,6 +51,7 @@ mod_thread(void *ptr __unused)
 	char *volatile dummy;
 
 	dummy = malloc(500);
+	*dummy = 'a';
 	return (NULL);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112060028.1B60S85X084930>