Repository : ssh://git@open-mesh.org/batctl
On branch : next
commit cc9e48b16a8c310f229f986c438b983faa9246dd Author: Sven Eckelmann sven@narfation.org Date: Sat May 24 14:16:44 2014 +0200
batctl: Don't provide uninitialized parameter to read_file
The debug table function uses a parameter to filter out old originator nodes when read_file processes the file. The variable is by default not initialized and still given to this function. This is bad practice and irritates checker tools.
Signed-off-by: Sven Eckelmann sven@narfation.org Signed-off-by: Marek Lindner mareklindner@neomailbox.ch
cc9e48b16a8c310f229f986c438b983faa9246dd debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debug.c b/debug.c index e7f463d..dfcf3c3 100644 --- a/debug.c +++ b/debug.c @@ -107,7 +107,7 @@ int handle_debug_table(char *mesh_iface, int debug_table, int argc, char **argv) char full_path[MAX_PATH+1]; char *debugfs_mnt; char *orig_iface = NULL; - float orig_timeout; + float orig_timeout = 0.0f; float watch_interval = 1; opterr = 0;