]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 1b4376577eb2c542384cba91d4aee95355d89bb0..ba5e99e2fcabb719ff0219f1ea65b2b4ded841a9 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