- 
                Notifications
    You must be signed in to change notification settings 
- Fork 873
Open
Description
In the following code snippet, the pointer al is checked for nullness after is has already been dereferenced. Should we move the check before the dereference?
gear-lib/gear-lib/libsock/libsock.c
Lines 548 to 551 in 5e1947f
| if (al == NULL) { | |
| printf("Could not get ip address of %s!\n", domain); | |
| return -1; | |
| } | 
gear-lib/gear-lib/libsock/libsock.c
Lines 586 to 589 in 5e1947f
| if (al == NULL) { | |
| printf("Could not get ip address of %s!\n", name); | |
| return -1; | |
| } | 
Metadata
Metadata
Assignees
Labels
No labels