diff mcabber/src/commands.c @ 1365:c7e709719c43

Small code cleanup
author Mikael Berthe <mikael@lilotux.net>
date Mon, 12 Nov 2007 19:27:55 +0100
parents 32077249de77
children 23afeb5c555b
line wrap: on
line diff
--- a/mcabber/src/commands.c	Sun Nov 11 23:13:35 2007 +0100
+++ b/mcabber/src/commands.c	Mon Nov 12 19:27:55 2007 +0100
@@ -363,6 +363,9 @@
   char *xpline;
   cmd *curcmd;
 
+  if (!line)
+    return 0;
+
   // We do alias expansion here
   if (iscmd || scr_get_multimode() != 2)
     xpline = expandalias(line);