about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@openmailbox.org>2015-10-26 14:24:11 +0100
committerMichael Vetter <jubalh@openmailbox.org>2015-10-26 14:24:11 +0100
commita6f27d3ea73ad0165c1bb12744ecc172d43511e3 (patch)
tree448bf360517dd2018a67a02b269eb2ecfc7d45e0
parent523d92e950f3eecb700dd2495c423cce3bfd0939 (diff)
downloadprofani-tty-a6f27d3ea73ad0165c1bb12744ecc172d43511e3.tar.gz
Fix pointer dereferencing
Setting the pointer to NULL had no effect outside the function so far.
-rw-r--r--src/config/preferences.c1
-rw-r--r--src/muc.c1
-rw-r--r--src/ui/buffer.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/src/config/preferences.c b/src/config/preferences.c
index 5ac4652b..3ff9a589 100644
--- a/src/config/preferences.c
+++ b/src/config/preferences.c
@@ -203,7 +203,6 @@ prefs_free_string(char *pref)
     if (pref) {
         g_free(pref);
     }
-    pref = NULL;
 }
 
 
diff --git a/src/muc.c b/src/muc.c
index 1ceb7ce0..0d84e7f6 100644
--- a/src/muc.c
+++ b/src/muc.c
@@ -976,6 +976,5 @@ _occupant_free(Occupant *occupant)
         free(occupant->jid);
         free(occupant->status);
         free(occupant);
-        occupant = NULL;
     }
 }
diff --git a/src/ui/buffer.c b/src/ui/buffer.c
index 20528de4..629aa9e7 100644
--- a/src/ui/buffer.c
+++ b/src/ui/buffer.c
@@ -76,7 +76,6 @@ buffer_free(ProfBuff buffer)
 {
     g_slist_free_full(buffer->entries, (GDestroyNotify)_free_entry);
     free(buffer);
-    buffer = NULL;
 }
 
 void