[mpd-show] Fix wideFromMulti handling mbrtowc errors incorrectly
commita3af1cb6a19064d15f2e8d2ca76bba88f7869af4
authorMichal Nazarewicz <mina86@mina86.com>
Wed, 6 Sep 2017 13:51:44 +0000 (6 15:51 +0200)
committerMichal Nazarewicz <mina86@mina86.com>
Wed, 6 Sep 2017 13:51:55 +0000 (6 15:51 +0200)
tree510268c1bcc65d7740c38c76a0f327167dd42eba
parent9b9333625cdb78fa024ada08f1280caa351d9f7b
[mpd-show] Fix wideFromMulti handling mbrtowc errors incorrectly

Since ret is an unsigned type, (size_t)-1 and (size_t)-2 are greater
than zero.  This means that ‘ret > 0’ condition at the beginning will
match those error conditions.  Fix that.
mpd-show.c