diff mbox

[1/5] load_drivers: reset the list head after releasing items

Message ID aa8c4f59ed5624568a8530b270a8e7fe9f3c2dc6.1301562707.git.ydroneaud@opteya.com (mailing list archive)
State Superseded
Headers show

Commit Message

Yann Droneaud March 31, 2011, 9:29 a.m. UTC
None
diff mbox

Patch

diff --git a/src/init.c b/src/init.c
index 4f0130e..9e235e8 100644
--- a/src/init.c
+++ b/src/init.c
@@ -232,6 +232,8 @@  static void load_drivers(void)
 		free(name->name);
 		free(name);
 	}
+
+	driver_name_list = NULL;
 }
 
 static void read_config_file(const char *path)