Skip to content

Commit

Permalink
tests/unit-test-(server|client).c: satisfy older compilers that ip_or…
Browse files Browse the repository at this point in the history
…_device is safe to use

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Jan 26, 2025
1 parent 97f47f1 commit 161c40f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit-test-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int main(int argc, char *argv[])
int use_backend;
int success = FALSE;
int old_slave;
char *ip_or_device;
char *ip_or_device = NULL;

if (argc > 1) {
if (strcmp(argv[1], "tcp") == 0) {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit-test-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ int main(int argc, char *argv[])
int use_backend;
uint8_t *query;
int header_length;
char *ip_or_device;
char *ip_or_device = NULL;

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

0 comments on commit 161c40f

Please sign in to comment.