Skip to content

Commit 8448260

Browse files
committed
Merge branch 'v3_8'
2 parents 5da0a0c + c40f504 commit 8448260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sfptpd_test_format.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static int test_format (const char *title,
141141
*buf ='\0';
142142

143143
len2 = sfptpd_format(interpolators, test_cases[i].object, buf, len + 1, test_cases[i].format);
144-
if (len2 < 0 && (e == errno) != test_cases[i].error) {
144+
if (len2 < 0 && (e = errno) != test_cases[i].error) {
145145
printf("%s: test %d: got error formatting string:\n rc = %s\n errno = %s\n expected = %s\n",
146146
title, i, strerror(-len), strerror(e), strerror(test_cases[i].error));
147147
failures++;

0 commit comments

Comments
 (0)