From ce2113bbee714d791732b41b115b09315f39805e Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Thu, 15 Mar 2012 16:32:03 +0100 Subject: [PATCH] Add NULL pointer check in file_valid_extension --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index afc88fa..3d9911a 100644 --- a/utils.c +++ b/utils.c @@ -54,7 +54,7 @@ file_get_extension(const char* path) bool file_valid_extension(zathura_t* zathura, const char* path) { - if (path == NULL) { + if (zathura == NULL || path == NULL) { return false; }