* cli/cli-script.c (build_command_line): Add null pointer guard
(Coverity).
+2007-06-28 Michael Snyder <msnyder@access-company.com>
+
+ * cli/cli-script.c (build_command_line): Add null pointer guard
+ (Coverity).
+
2007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
* linux-thread-db.c (thread_db_attach): Delete.
= (struct command_line **) xmalloc (sizeof (struct command_line *)
* cmd->body_count);
memset (cmd->body_list, 0, sizeof (struct command_line *) * cmd->body_count);
- cmd->line = savestring (args, strlen (args));
+ if (args != NULL)
+ cmd->line = savestring (args, strlen (args));
+
return cmd;
}