Skip to content

Commit 4ee5bfc

Browse files
committed
GCC 4.8 -Wmaybe-uninitialized is *really* dumb
1 parent 7c4d7cb commit 4ee5bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/misc/ssh/ssh_decode_sequence_multi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ int ssh_decode_sequence_multi(const unsigned char *in, unsigned long inlen, ...)
5353
}
5454

5555
/* Calculate (or read) length of data */
56+
size = (unsigned long)-1;
5657
switch (type) {
5758
case LTC_SSHDATA_BYTE:
5859
case LTC_SSHDATA_BOOLEAN:
@@ -74,7 +75,6 @@ int ssh_decode_sequence_multi(const unsigned char *in, unsigned long inlen, ...)
7475

7576
case LTC_SSHDATA_EOL:
7677
/* Should never get here */
77-
size = (unsigned long)-1;
7878
err = CRYPT_INVALID_ARG;
7979
goto error;
8080
}

0 commit comments

Comments
 (0)