[easytag] Avoid empty file list NULL pointer dereference
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Avoid empty file list NULL pointer dereference
- Date: Sun, 23 Jun 2013 21:46:45 +0000 (UTC)
commit 60c0ee5aa54f65d92201aee5913228268cb2afb4
Author: David King <amigadave amigadave com>
Date: Sun Jun 23 22:43:51 2013 +0100
Avoid empty file list NULL pointer dereference
src/et_core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/et_core.c b/src/et_core.c
index 8a6b6c5..9b9f4b5 100644
--- a/src/et_core.c
+++ b/src/et_core.c
@@ -2594,7 +2594,7 @@ void ET_Display_File_Data_To_UI (ET_File *ETFile)
gchar *cur_filename_utf8;
gchar *msg;
- g_return_if_fail (ETFile != NULL ||
+ g_return_if_fail (ETFile != NULL &&
((GList *)ETFile->FileNameCur)->data != NULL);
/* For the case where ETFile is an "empty" structure. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]