mount-tool: return 0 instead of NULL in the acquire_description() (#4009)

System Internals / systemd - 0xAX [users.noreply.github.com] - 22 August 2016 01:14 UTC

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.

05b4d3b mount-tool: return 0 instead of NULL in the acquire_description() (#4009)
src/mount/mount-tool.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

Upstream: github.com


  • Share