mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-30 15:32:58 +00:00
Fix format-pedantic error in programs/test/metatest.c
Signed-off-by: Michael Schuster <michael@schuster.ms>
This commit is contained in:
parent
f672b694fa
commit
82cb06913a
@ -128,7 +128,7 @@ static void null_pointer_dereference(const char *name)
|
|||||||
volatile char *volatile p;
|
volatile char *volatile p;
|
||||||
set_to_zero_but_the_compiler_does_not_know(&p, sizeof(p));
|
set_to_zero_but_the_compiler_does_not_know(&p, sizeof(p));
|
||||||
/* Undefined behavior (read from null data pointer) */
|
/* Undefined behavior (read from null data pointer) */
|
||||||
mbedtls_printf("%p -> %u\n", p, (unsigned) *p);
|
mbedtls_printf("%p -> %u\n", (void *) p, (unsigned) *p);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void null_pointer_call(const char *name)
|
static void null_pointer_call(const char *name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user