aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_read.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-07 18:54:36 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-07 18:54:36 +0000
commite23dc303bce58d1b445bc732791c9784780b73d3 (patch)
tree0acecb85af801f08fc7c570f26be1749e6e9873f /apps/app_read.c
parent23304065fd7449d45e6623e9b1c014d4d386551e (diff)
Minor cleanup and make sure the tmp variable is clean
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42298 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_read.c')
-rw-r--r--apps/app_read.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/app_read.c b/apps/app_read.c
index 4c76ccb86..bb3dd669b 100644
--- a/apps/app_read.c
+++ b/apps/app_read.c
@@ -88,11 +88,9 @@ static int read_exec(struct ast_channel *chan, void *data)
{
int res = 0;
struct ast_module_user *u;
- char tmp[256];
- int maxdigits=255;
- int tries = 1;
- int to = 0;
- int x = 0;
+ char tmp[256] = "";
+ int maxdigits = 255;
+ int tries = 1, to = 0, x = 0;
char *argcopy = NULL;
struct tone_zone_sound *ts;
struct ast_flags flags = {0};