X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-search.c;h=616fe68a12f8253045a4faa973571e1303823a2f;hp=530cecc343b9f928517176a830d1662874609574;hb=d5edb1122db86dadd0d98dd8ccf3431e4d021337;hpb=f954b692517237cb0d4779ca95002b2c896cc62d diff --git a/notmuch-search.c b/notmuch-search.c index 530cecc3..616fe68a 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -116,6 +116,9 @@ sanitize_string (const void *ctx, const char *str) { char *out, *loop; + if (NULL == str) + return NULL; + loop = out = talloc_strdup (ctx, str); for (; *loop; loop++) {