Skip to content

Commit 34e22c5

Browse files
committed
ext/standard/pack: Reduce scope of variable
1 parent e96a7f0 commit 34e22c5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ext/standard/pack.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,15 +737,14 @@ PHP_FUNCTION(unpack)
737737

738738
while (formatlen-- > 0) {
739739
char type = *(format++);
740-
char c;
741740
int repetitions = 1, argb;
742741
char *name;
743742
int namelen;
744743
int size = 0;
745744

746745
/* Handle format arguments if any */
747746
if (formatlen > 0) {
748-
c = *format;
747+
char c = *format;
749748

750749
if (c >= '0' && c <= '9') {
751750
errno = 0;

0 commit comments

Comments
 (0)