mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
Fill in the watch_info struct only when it's needed
This commit is contained in:
parent
364b22c030
commit
ed3dbc1f35
@ -536,12 +536,14 @@ process_directory(int libidx, char *path, int flags)
|
||||
return;
|
||||
}
|
||||
|
||||
wi.libidx = libidx;
|
||||
wi.cookie = 0;
|
||||
wi.path = path;
|
||||
|
||||
if (!(flags & F_SCAN_RESCAN))
|
||||
db_watch_add(&wi);
|
||||
{
|
||||
wi.libidx = libidx;
|
||||
wi.cookie = 0;
|
||||
wi.path = path;
|
||||
|
||||
db_watch_add(&wi);
|
||||
}
|
||||
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
memset(&kev, 0, sizeof(struct kevent));
|
||||
|
Loading…
Reference in New Issue
Block a user