aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2016-07-29 22:04:08 +0200
committerDuncaen <mail@duncano.de>2016-07-30 00:21:13 +0200
commitcfb490561a9edefcd549234b93abaef6d37e353d (patch)
tree5b13625d903d12238285f7024e8a2e7f1d934039
parent4296c369f6757e8fe8938dc02053309753075971 (diff)
downloadmblaze-cfb490561a9edefcd549234b93abaef6d37e353d.tar.gz
mpick: fix subject expression, broke while normalizing style
-rw-r--r--mpick.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpick.c b/mpick.c
index 3b30787..e024e27 100644
--- a/mpick.c
+++ b/mpick.c
@@ -738,11 +738,11 @@ msg_date(struct mailinfo *m)
char *
msg_subject(struct mailinfo *m)
{
- if (!*m->subject)
+ if (!m->subject)
return m->subject;
char *b;
- if (m->msg == 0 || (b = blaze822_hdr(m->msg, "subject")) == 0)
+ if (!m->msg || !(b = blaze822_hdr(m->msg, "subject")))
return "";
blaze822_decode_rfc2047(m->subject, b, sizeof m->subject - 1, "UTF-8");