]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-search.c
python: Bulletproof Database() path parameter
[notmuch] / notmuch-search.c
index 530cecc343b9f928517176a830d1662874609574..616fe68a12f8253045a4faa973571e1303823a2f 100644 (file)
@@ -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++) {