]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/mount.c
core/mount: use isempty() to check for empty strings
authorDaniel Mack <daniel@zonque.org>
Mon, 12 Jan 2015 12:46:39 +0000 (13:46 +0100)
committerDaniel Mack <daniel@zonque.org>
Mon, 12 Jan 2015 13:01:45 +0000 (14:01 +0100)
commit0c47569ac9eb365ebeb9342f47fb98d52bcc4704
tree03cfb07dfeb37ba5a6e9eb9d7a5a1bec4a489c08
parentb9e616cc2256501f484f138999ec63a0094f5c4f
core/mount: use isempty() to check for empty strings

strempty() will return an empty string in case the input parameter is
a NULL pointer. The correct test to check for an empty string is
isempty(), so use that instead.

This fixes a regression from commit 17a1c59 ("core/mount: filter out
noauto,auto,nofail,fail options").
src/core/mount.c