Skip to content

Commit 2779d30

Browse files
committed
Fix for variable decleration in middle of function
1 parent ac4572f commit 2779d30

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/echoserver/echoserver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1809,6 +1809,7 @@ static char* LoadSshKey(const char* path)
18091809
long length;
18101810
const char* gretelKey = samplePublicKeyRsaBuffer;
18111811
const char* hanselKey;
1812+
long gretelLen;
18121813

18131814
/* Find where hansel's key starts (it's after gretel's key) */
18141815
hanselKey = strstr(gretelKey + 1, "ssh-rsa");
@@ -1818,7 +1819,7 @@ static char* LoadSshKey(const char* path)
18181819
}
18191820

18201821
/* Calculate length of gretel's key portion */
1821-
long gretelLen = hanselKey - gretelKey;
1822+
gretelLen = hanselKey - gretelKey;
18221823

18231824
/* Read new key from file */
18241825
file = fopen(path, "rb");

0 commit comments

Comments
 (0)