Move the assignment after the bozo check.
This commit was SVN r28669.
Этот коммит содержится в:
родитель
dd25421d48
Коммит
e3d0782788
@ -187,12 +187,13 @@ static const char *link_layer_to_str(int link_type)
|
||||
static void check_sanity(char ***if_sanity_list, const char *dev_name, int port)
|
||||
{
|
||||
int i;
|
||||
char tmp[BUFSIZ], **list = *if_sanity_list;
|
||||
char tmp[BUFSIZ], **list;
|
||||
const char *compare;
|
||||
|
||||
if (NULL == if_sanity_list || NULL == *if_sanity_list) {
|
||||
return;
|
||||
}
|
||||
list = *if_sanity_list;
|
||||
|
||||
/* A match is found if:
|
||||
- "dev_name" is in the list and port == -1, or
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user