Browse Source

fix warning about possible null string

closes #977

Change-Id: I4dec339289cb36402eef6bca39bb7af31ee17ef0
changes/08/39708/1
Richard Fuchs 6 years ago
parent
commit
e516db2c30
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/socket.h

+ 1
- 1
lib/socket.h View File

@ -119,7 +119,7 @@ INLINE char *sockaddr_print_buf(const sockaddr_t *a) {
char *buf = get_thread_buf();
if (!a->family) {
buf[0] = '\0';
return 0;
return buf;
}
sockaddr_print(a, buf, THREAD_BUF_SIZE);
return buf;


Loading…
Cancel
Save