mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
Fix anthm formatting (bug #3013)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4588 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
16
app.c
16
app.c
@@ -1073,15 +1073,15 @@ int ast_app_group_match_get_count(char *groupmatch, char *category)
|
|||||||
|
|
||||||
int ast_seperate_app_args(char *buf, char delim, char **array, int arraylen)
|
int ast_seperate_app_args(char *buf, char delim, char **array, int arraylen)
|
||||||
{
|
{
|
||||||
int x = 0;
|
int x = 0;
|
||||||
memset(array, 0, arraylen * sizeof(char *));
|
memset(array, 0, arraylen * sizeof(char *));
|
||||||
if (!buf)
|
if (!buf)
|
||||||
return 0;
|
return 0;
|
||||||
for (array[x] = buf ; x < arraylen && array[x]; x++) {
|
for (array[x] = buf ; x < arraylen && array[x]; x++) {
|
||||||
if ((array[x+1] = strchr(array[x], delim))) {
|
if ((array[x+1] = strchr(array[x], delim))) {
|
||||||
*array[x+1] = '\0';
|
*array[x+1] = '\0';
|
||||||
array[x+1]++;
|
array[x+1]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user