Remove unused code that caused warnings about an uninitialized variable.
This commit is contained in:
parent
b22b9d4389
commit
97457716d7
1 changed files with 1 additions and 4 deletions
|
@ -401,11 +401,8 @@ bool net2str(char *netstr, int len, const subnet_t *subnet) {
|
||||||
len -= result;
|
len -= result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (subnet->weight != DEFAULT_WEIGHT) {
|
if (subnet->weight != DEFAULT_WEIGHT)
|
||||||
snprintf(netstr, len, "#%d", subnet->weight);
|
snprintf(netstr, len, "#%d", subnet->weight);
|
||||||
netstr += result;
|
|
||||||
len -= result;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue