* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program. If not, see http://www.gnu.org/licenses/ .
+ * along with this program. If not, see https://www.gnu.org/licenses/ .
*
* Author: Carl Worth <cworth@cworth.org>
*/
const char *
notmuch_filenames_get (notmuch_filenames_t *filenames)
{
- if (filenames->iterator == NULL)
+ if ((filenames == NULL) || (filenames->iterator == NULL))
return NULL;
return filenames->iterator->string;
void
notmuch_filenames_move_to_next (notmuch_filenames_t *filenames)
{
- if (filenames->iterator == NULL)
+ if ((filenames == NULL) || (filenames->iterator == NULL))
return;
filenames->iterator = filenames->iterator->next;