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>
Sun, 6 Jan 2019 19:33:01 +0000 (19:33 +0000)
commit72595918ee7f4fa9fb52c2c9a5a061fbba712d30
tree6d115c5af6ef55f65c388fe6b1ce826beb69bd6c
parent19ae39dd794d2d038c7a1302cc93092448cd51c1
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