Fix invalid pointer use in get_my_hostname().
authorEtienne Dechamps <etienne@edechamps.fr>
Sun, 24 May 2015 08:49:16 +0000 (09:49 +0100)
committerEtienne Dechamps <etienne@edechamps.fr>
Sun, 24 May 2015 08:49:16 +0000 (09:49 +0100)
commit9e3adef5cb31cb73fbbbd25d3fce115aac107714
treea9955a70c0033890412d630f70f240e10cd530c6
parent7fcfbe2bd2d14d13e06e3e2addfe0ea12b67873f
Fix invalid pointer use in get_my_hostname().

clang-3.7 warnings surfaced an actual bug:

invitation.c:185:5: error: address of array 'filename' will always evaluate to 'true'
      [-Werror,-Wpointer-bool-conversion]
        if(filename) {
        ~~ ^~~~~~~~

The regression was introduced in 3ccdf50beb6b2d3f2730bdc66006b43190537cde.
src/invitation.c