fstools: block: fix segfault on mount with no target
authorDaniel Danzberger <daniel@dd-wrt.com>
Tue, 4 May 2021 13:23:11 +0000 (15:23 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 15 May 2021 23:28:11 +0000 (00:28 +0100)
commitb5397a142d3ac35daeb526b1df82ccbf64bff741
tree3a139f6b3bf19aabf5242eebc2b7067f522a9a4a
parentc44b40be0f7547609eeadd39afce4e5db42f75bc
fstools: block: fix segfault on mount with no target

When a UCI fstab mount config doesn't contain a target option,
a 'block mount' call segfaults when comparing a mount's target (NULL)
to a found mount point returned by find_mount_point()

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
Acked-by: Paul Spooren <mail@aparcar.org>
block.c