mount_main: Fix empty string check
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 13 Jun 2018 09:48:39 +0000 (11:48 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 19 Jul 2018 00:13:54 +0000 (01:13 +0100)
commit81337c265c31f9864813b52cee4c0c0471d4fd85
treee12138d1a4c79bba4363166545f99b78bef33f36
parent22bc9c75edfd47c2bbb3905317e9962754bae803
mount_main: Fix empty string check

gcc 7.3.0 complains:

```
usr/utils/mount_main.c: In function â€˜print_mount’:
usr/utils/mount_main.c:46:46: warning: comparison between pointer and zero character constant [-Wpointer-compare]
   if (mnt->mnt_type != NULL && mnt->mnt_type != '\0')
                                              ^~
usr/utils/mount_main.c:46:32: note: did you mean to dereference the pointer?
   if (mnt->mnt_type != NULL && mnt->mnt_type != '\0')
                                ^
usr/utils/mount_main.c:48:46: warning: comparison between pointer and zero character constant [-Wpointer-compare]
   if (mnt->mnt_opts != NULL && mnt->mnt_opts != '\0')
                                              ^~
usr/utils/mount_main.c:48:32: note: did you mean to dereference the pointer?
   if (mnt->mnt_opts != NULL && mnt->mnt_opts != '\0')
                                ^
```

Gbp-Pq: Name mount_main-Fix-empty-string-check.patch
usr/utils/mount_main.c