poldek: poldek/cli/cmd_chain.c - SIGSEV killed on ';' command
mis
mis at pld-linux.org
Mon Jan 8 17:48:49 CET 2007
Author: mis Date: Mon Jan 8 16:48:49 2007 GMT
Module: poldek Tag: HEAD
---- Log message:
- SIGSEV killed on ';' command
---- Files affected:
poldek/poldek/cli:
cmd_chain.c (1.7 -> 1.8)
---- Diffs:
================================================================
Index: poldek/poldek/cli/cmd_chain.c
diff -u poldek/poldek/cli/cmd_chain.c:1.7 poldek/poldek/cli/cmd_chain.c:1.8
--- poldek/poldek/cli/cmd_chain.c:1.7 Sun Nov 6 20:26:27 2005
+++ poldek/poldek/cli/cmd_chain.c Mon Jan 8 17:48:44 2007
@@ -355,15 +355,14 @@
if (n_array_size(tl) == 0) /* empty token list */
goto l_end;
-
#if ENABLE_TRACE
printf("line = (%s)\n", line);
for (i=0; i<n_array_size(tl); i++)
printf("tl[%d] = %s\n", i, (char*)n_array_nth(tl, i));
#endif
- arr = a_argv_split(tl, ";|");
- n_assert(arr);
+ if ((arr = a_argv_split(tl, ";|")) == NULL)
+ return NULL;
for (i=0; i < n_array_size(arr); i++) {
struct a_argv_ent *ent = n_array_nth(arr, i);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/poldek/poldek/cli/cmd_chain.c?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list