Skip to content

Commit d6891af

Browse files
committed
core/device: fix meaningless assertion
Closes CID#1609498.
1 parent 52990fe commit d6891af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ static const struct {
364364
static int device_found_to_string_many(DeviceFound flags, char **ret) {
365365
_cleanup_free_ char *s = NULL;
366366

367-
assert(flags >= 0);
367+
assert((flags & ~_DEVICE_FOUND_MASK) == 0);
368368
assert(ret);
369369

370370
FOREACH_ELEMENT(i, device_found_map) {

0 commit comments

Comments
 (0)