state: fix parsing interface names in ifstate files
This commit is contained in:
parent
6603ff1000
commit
ca07082ff4
1 changed files with 1 additions and 1 deletions
|
@ -22,10 +22,10 @@ bool
|
||||||
lif_state_read(struct lif_dict *state, FILE *fd)
|
lif_state_read(struct lif_dict *state, FILE *fd)
|
||||||
{
|
{
|
||||||
char linebuf[4096];
|
char linebuf[4096];
|
||||||
char *bufp = linebuf;
|
|
||||||
|
|
||||||
while (lif_fgetline(linebuf, sizeof linebuf, fd))
|
while (lif_fgetline(linebuf, sizeof linebuf, fd))
|
||||||
{
|
{
|
||||||
|
char *bufp = linebuf;
|
||||||
char *ifname = lif_next_token(&bufp);
|
char *ifname = lif_next_token(&bufp);
|
||||||
char *refcount = lif_next_token(&bufp);
|
char *refcount = lif_next_token(&bufp);
|
||||||
size_t rc = 1;
|
size_t rc = 1;
|
||||||
|
|
Loading…
Reference in a new issue