ensure log context category is valid before reading it
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 7 Oct 2024 12:16:50 +0000 (14:16 +0200)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Mon, 7 Oct 2024 15:04:26 +0000 (17:04 +0200)
commit35d4f91b42f7b468bfe01ee160900f419b409a90
treede634c94a3486561194991cd582512ae1a89528b
parent3974040b0d1f7d55f4ceab6c1b262b73ccb1a4d2
ensure log context category is valid before reading it

category of logs accessed via log context can be null
in such a case, strcmp will crash

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/libsync/logger.cpp