Remove unused code that caused warnings about an uninitialized variable.

This commit is contained in:
Guus Sliepen 2015-07-12 12:55:13 +02:00
parent b22b9d4389
commit 97457716d7

View file

@ -401,11 +401,8 @@ bool net2str(char *netstr, int len, const subnet_t *subnet) {
len -= result;
}
if (subnet->weight != DEFAULT_WEIGHT) {
if (subnet->weight != DEFAULT_WEIGHT)
snprintf(netstr, len, "#%d", subnet->weight);
netstr += result;
len -= result;
}
return true;
}