[PATCH] avoid segfault when calling sanitize_string() on NULL

2011-05-10 Thread Daniel Kahn Gillmor
--- notmuch-search.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/notmuch-search.c b/notmuch-search.c index 794b145..26b24eb 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -116,6 +116,9 @@ sanitize_string (const void *ctx, const char *str) { char *out,

[PATCH] avoid segfault when calling sanitize_string() on NULL

2011-05-10 Thread Jameson Graef Rollins
Yikes! Thanks for finding this, dkg. I just pushed this to r-c/0.6. It looks like we need to expand the tests to test this corner case. jamie. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc:

[PATCH] avoid segfault when calling sanitize_string() on NULL

2011-05-10 Thread Daniel Kahn Gillmor
--- notmuch-search.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/notmuch-search.c b/notmuch-search.c index 794b145..26b24eb 100644 --- a/notmuch-search.c +++ b/notmuch-search.c @@ -116,6 +116,9 @@ sanitize_string (const void *ctx, const char *str) { char *out,

Re: [PATCH] avoid segfault when calling sanitize_string() on NULL

2011-05-10 Thread Jameson Graef Rollins
Yikes! Thanks for finding this, dkg. I just pushed this to r-c/0.6. It looks like we need to expand the tests to test this corner case. jamie. pgpdZpqR2ALSs.pgp Description: PGP signature ___ notmuch mailing list notmuch@notmuchmail.org