command_util.sh: Make sure the "handler" pointer is NULL if a line handler exists.
authorAndre <maan@meins.(none)>
Sun, 21 Jan 2007 21:11:10 +0000 (22:11 +0100)
committerAndre <maan@meins.(none)>
Sun, 21 Jan 2007 21:11:10 +0000 (22:11 +0100)
This becomes neccessary because the array of commands is no longer static,
i.e. the standard does not guarantee that uninitialized members are zeroed out.

command_util.sh

index 1b43765..ba5e99e 100755 (executable)
@@ -8,6 +8,7 @@ dump_array_member()
        if test $line_handler -eq 0; then
                echo ".handler = com_$name_txt,"
        else
        if test $line_handler -eq 0; then
                echo ".handler = com_$name_txt,"
        else
+               echo ".handler = NULL,"
                echo ".line_handler = com_$name_txt,"
        fi
        if test -n "$perms_txt"; then
                echo ".line_handler = com_$name_txt,"
        fi
        if test -n "$perms_txt"; then