Commit fb64e8c
committed
ql: Default initialize threads to NULL.
The function notmuch_query_search_threads() only sets the pointer on
success. Not initializing the pointer could result in an abort or
segfault inside notmuch_threads_destroy() due to it pointing to whatever
was previously on the stack.1 parent d219f76 commit fb64e8c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
0 commit comments