]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/mount/mount-tool.c
mount-tool: return 0 instead of NULL in the acquire_description() (#4009)
author0xAX <0xAX@users.noreply.github.com>
Mon, 22 Aug 2016 06:14:23 +0000 (09:14 +0300)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 22 Aug 2016 06:14:23 +0000 (02:14 -0400)
commit05b4d3b55c0a60aa17817d51129f2bc83914c1f4
tree9e1672b4da1364568f2d26aed8066a36c0207545
parentdf35bfaa25f8bda7953d922c73c5fd0242089fe6
mount-tool: return 0 instead of NULL in the acquire_description() (#4009)

to prevent:

src/mount/mount-tool.c: In function ‘acquire_description’:
src/mount/mount-tool.c:728:24: warning: return makes integer from pointer without a cast [-Wint-conversion]
                 return NULL;
                                         ^~~~
warning.

Additionally we don't set Description property in a case when
arg_description is NULL.
src/mount/mount-tool.c