- Timestamp:
- Feb 11, 2011, 4:31:33 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 35b6eb9
- Parents:
- 9518a85
- git-author:
- Anders Kaseorg <andersk@mit.edu> (08/27/09 00:51:45)
- git-committer:
- Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cmd.c
r4d24650 r96828e4 50 50 int owl_cmddict_add_alias(owl_cmddict *cd, const char *alias_from, const char *alias_to) { 51 51 owl_cmd *cmd; 52 cmd = owl_malloc(sizeof(owl_cmd));52 cmd = g_new(owl_cmd, 1); 53 53 owl_cmd_create_alias(cmd, alias_from, alias_to); 54 54 owl_perlconfig_new_command(cmd->name); … … 58 58 59 59 int owl_cmddict_add_cmd(owl_cmddict *cd, const owl_cmd * cmd) { 60 owl_cmd * newcmd = owl_malloc(sizeof(owl_cmd));60 owl_cmd * newcmd = g_new(owl_cmd, 1); 61 61 if(owl_cmd_create_from_template(newcmd, cmd) < 0) { 62 62 owl_free(newcmd);
Note: See TracChangeset
for help on using the changeset viewer.