Changeset d275eb2 for commands.c
- Timestamp:
- Jan 2, 2011, 3:31:58 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 2bc6ad35
- Parents:
- f640876
- git-author:
- David Benjamin <davidben@mit.edu> (12/15/10 13:18:34)
- git-committer:
- David Benjamin <davidben@mit.edu> (01/02/11 15:31:58)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
rb31f1c9 rd275eb2 1670 1670 char *lastrv = NULL, *newbuff; 1671 1671 char **commands; 1672 int ncommands,i;1672 int i; 1673 1673 if (argc < 2) { 1674 1674 owl_function_makemsg("Invalid arguments to 'multi' command."); … … 1688 1688 } 1689 1689 } 1690 commands = atokenize(newbuff, ";", &ncommands);1691 for (i =0; i<ncommands; i++) {1690 commands = g_strsplit_set(newbuff, ";", 0); 1691 for (i = 0; commands[i] != NULL; i++) { 1692 1692 if (lastrv) { 1693 1693 owl_free(lastrv); … … 1696 1696 } 1697 1697 owl_free(newbuff); 1698 atokenize_delete(commands, ncommands);1698 g_strfreev(commands); 1699 1699 return lastrv; 1700 1700 }
Note: See TracChangeset
for help on using the changeset viewer.