dect
/
asterisk
Archived
13
0
Fork 0

Remove unnecessary warning message, make a couple of formatting tweaks

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@248534 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2010-02-24 06:39:27 +00:00
parent 95fcdb7c5c
commit 3d2c830509
1 changed files with 2 additions and 3 deletions

View File

@ -1056,14 +1056,13 @@ static int csv_quote(struct ast_channel *chan, const char *cmd, char *data, char
{
char *bufptr = buf, *dataptr = data;
if (len < 3){ /* at least two for quotes and one for binary zero */
if (len < 3) { /* at least two for quotes and one for binary zero */
ast_log(LOG_ERROR, "Not enough buffer");
return -1;
}
if (ast_strlen_zero(data)) {
ast_log(LOG_WARNING, "No argument specified!\n");
ast_copy_string(buf,"\"\"",len);
ast_copy_string(buf, "\"\"", len);
return 0;
}