Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F16027297
libgpg-error1.patch
jeffcliff (jeff cliff)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
jeffcliff
Oct 18 2024, 5:24 AM
2024-10-18 05:24:21 (UTC+2)
Size
1 KB
Subscribers
None
libgpg-error1.patch
View Options
--- libgpg-error-1.50/tests/t-printf.c 2022-12-16 10:20:45.000000000 -0600
+++ libgpg-error-fixed/tests/t-printf.c 2024-10-17 21:13:09.412058624 -0600
@@ -449,7 +449,7 @@
static void
check_fprintf_sf (void)
{
- volatile char *nullptr = NULL; /* Avoid compiler warning. */
+ volatile char *nullptr1 = NULL; /* Avoid compiler warning. */
struct sfstate_s sfstate = {NULL};
gpgrt_stream_t stream;
const char *expect;
@@ -461,8 +461,8 @@
gpgrt_fprintf_sf (stream, string_filter, &sfstate,
"%s a=%d b=%s c=%d d=%.8s null=%s\n",
- nullptr, 1, "foo\x01 bar", 2,
- "a longer string", nullptr);
+ nullptr1, 1, "foo\x01 bar", 2,
+ "a longer string", nullptr1);
expect = "[==>Niente<==] a=1 b=foo\x01 bar c=2 d=a longer null=(null)\n";
result = stream_to_string (stream);
if (strcmp (result, expect))
@@ -475,7 +475,7 @@
gpgrt_fprintf_sf (stream, string_filter, &sfstate,
"a=%d b=%s c=%d d=%.8s e=%s\n",
- 1, "foo\n bar", 2, nullptr, "");
+ 1, "foo\n bar", 2, nullptr1, "");
expect = "a=1 b=foo\n bar c=2 d=[==>Nien e=\n";
result = stream_to_string (stream);
if (strcmp (result, expect))
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cf/1e/b4f5dbf333f70e1902c06eb5114c
Attached To
T7344: libgpg-error: nullptr
Event Timeline
Log In to Comment