Skip to content

Commit fbb4ab5

Browse files
Local IP: Key: Clear before reuse
#368
1 parent e2cadf8 commit fbb4ab5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/modules/localip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ void ffPrintLocalIp(FFinstance* instance)
4040
}
4141
else
4242
{
43+
ffStrbufClear(&key);
4344
ffParseFormatString(&key, &instance->config.localIP.key, 1, (FFformatarg[]){
4445
{FF_FORMAT_ARG_TYPE_STRBUF, &ip->name}
4546
});

0 commit comments

Comments
 (0)