Skip to content

Commit 161c40f

Browse files
committed
tests/unit-test-(server|client).c: satisfy older compilers that ip_or_device is safe to use
Signed-off-by: Jim Klimov <[email protected]>
1 parent 97f47f1 commit 161c40f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/unit-test-client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ int main(int argc, char *argv[])
9494
int use_backend;
9595
int success = FALSE;
9696
int old_slave;
97-
char *ip_or_device;
97+
char *ip_or_device = NULL;
9898

9999
if (argc > 1) {
100100
if (strcmp(argv[1], "tcp") == 0) {

tests/unit-test-server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int main(int argc, char *argv[])
4242
int use_backend;
4343
uint8_t *query;
4444
int header_length;
45-
char *ip_or_device;
45+
char *ip_or_device = NULL;
4646

4747
if (argc > 1) {
4848
if (strcmp(argv[1], "tcp") == 0) {

0 commit comments

Comments
 (0)