diff options
author | dequis <dx@dxzone.com.ar> | 2015-11-24 12:05:41 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-11-24 12:05:41 -0300 |
commit | 5b01e1a5b69d9a86833dcd54046fe6a7832efec8 (patch) | |
tree | bcf235ba0f4b4afe9c2da75a0065c8cd3e58f714 /protocols/jabber/iq.c | |
parent | ad9ac5dccf8d27700850c02946ad3242a45d6fa9 (diff) |
jabber: Fix detection of away state in choose_priority()
Thanks to this clang warning:
comparison of array 'jd->away_state->code' not equal to a null
pointer is always true [-Wtautological-pointer-compare]
Although... given how ->code is offset 0, that might have worked
sometimes if jd->away_state is null, assuming a compiler that doesn't
hate humanity. Sadly, that is not something we can safely assume.
I bet gcc saw this and thought "let's optimize your poor soul away".
Diffstat (limited to 'protocols/jabber/iq.c')
0 files changed, 0 insertions, 0 deletions