From: Andre Date: Sun, 21 Jan 2007 21:11:10 +0000 (+0100) Subject: command_util.sh: Make sure the "handler" pointer is NULL if a line handler exists. X-Git-Tag: v0.2.15~85 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=4346bb908d494a60f4fa52875ae10228125d82f2 command_util.sh: Make sure the "handler" pointer is NULL if a line handler exists. 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. --- diff --git a/command_util.sh b/command_util.sh index 1b437657..ba5e99e2 100755 --- a/command_util.sh +++ b/command_util.sh @@ -8,6 +8,7 @@ dump_array_member() 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