[easytag/wip/ogg-errors: 1/2] Do not set function arguments to NULL
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/ogg-errors: 1/2] Do not set function arguments to NULL
- Date: Thu, 30 May 2013 21:27:15 +0000 (UTC)
commit 656a4d8780bfc05287d01826fc6cf571cfb44914
Author: David King <amigadave amigadave com>
Date: Thu May 30 22:11:55 2013 +0100
Do not set function arguments to NULL
Avoid setting function arguments to NULL, as the change will have no
effect outside the function. Found with cppcheck.
src/et_core.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/et_core.c b/src/et_core.c
index fc7c134..0a9fefd 100644
--- a/src/et_core.c
+++ b/src/et_core.c
@@ -2210,7 +2210,6 @@ gboolean ET_Free_File_Tag_Item (File_Tag *FileTag)
ET_Free_File_Tag_Item_Other_Field(FileTag);
g_free(FileTag);
- FileTag = NULL;
return TRUE;
}
@@ -2227,7 +2226,6 @@ ET_Free_File_Info_Item (ET_File_Info *ETFileInfo)
g_free(ETFileInfo->mpc_version);
g_free(ETFileInfo);
- ETFileInfo = NULL;
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]