]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Missing braces.
authorTilghman Lesher <tilghman@meg.abyt.es>
Mon, 4 Feb 2008 05:10:02 +0000 (05:10 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Mon, 4 Feb 2008 05:10:02 +0000 (05:10 +0000)
(closes issue #11912)
 Reported by: dimas
 Patches:
       sprintf.patch uploaded by dimas (license 88)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102214 65c4cc65-6c06-0410-ace0-fbb531ad65f3

funcs/func_strings.c

index c5849c0fc339b9060a205fc96a7d7e78695ce10d..b01bec7124d844d6ec796bc8c2473abee0ddac3f 100644 (file)
@@ -286,9 +286,10 @@ static int acf_sprintf(struct ast_channel *chan, char *cmd, char *data, char *bu
                                        i++;
                                state = SPRINTF_CONVERSION;
                                break;
-                       } else if (strchr("Lqjzt", arg.format[i]))
+                       } else if (strchr("Lqjzt", arg.format[i])) {
                                state = SPRINTF_CONVERSION;
                                break;
+                       }
                        state = SPRINTF_CONVERSION;
                case SPRINTF_CONVERSION:
                        if (strchr("diouxXc", arg.format[i])) {