Skip to content

Commit 4dabe1c

Browse files
Merge pull request #714 from ejohnstown/fix-warnings
Fix Initialization Warnings
2 parents 523c890 + 3c46fae commit 4dabe1c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/internal.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3007,7 +3007,7 @@ static int GetInputText(WOLFSSH* ssh, byte** pEol)
30073007
int gotLine = 0;
30083008
int inSz = 255;
30093009
int in;
3010-
char *eol;
3010+
char *eol = NULL;
30113011

30123012
if (GrowBuffer(&ssh->inputBuffer, inSz) < 0)
30133013
return WS_MEMORY_E;
@@ -4099,7 +4099,7 @@ static int DoKexInit(WOLFSSH* ssh, byte* buf, word32 len, word32* idx)
40994099
wc_HashAlg* hash = &ssh->handshake->kexHash;
41004100
enum wc_HashType hashId = (enum wc_HashType)ssh->handshake->kexHashId;
41014101
byte scratchLen[LENGTH_SZ];
4102-
word32 strSz;
4102+
word32 strSz = 0;
41034103

41044104
if (!ssh->isKeying) {
41054105
WLOG(WS_LOG_DEBUG, "Keying initiated");
@@ -4446,7 +4446,7 @@ static int ParseECCPubKey(WOLFSSH *ssh,
44464446
#ifndef WOLFSSH_NO_ECDSA
44474447
const byte* q;
44484448
word32 qSz, pubKeyIdx = 0;
4449-
int primeId;
4449+
int primeId = 0;
44504450
word32 scratch;
44514451

44524452
ret = wc_ecc_init_ex(&sigKeyBlock_ptr->sk.ecc.key, ssh->ctx->heap,
@@ -11262,7 +11262,7 @@ int SendKexDhReply(WOLFSSH* ssh)
1126211262
byte f_s[KEX_F_SIZE];
1126311263
byte sig_s[KEX_SIG_SIZE];
1126411264
#endif
11265-
byte msgId;
11265+
byte msgId = 0;
1126611266
byte useDh = 0;
1126711267
byte useEcc = 0;
1126811268
byte useCurve25519 = 0;
@@ -13980,7 +13980,7 @@ int SendUserAuthFailure(WOLFSSH* ssh, byte partialSuccess)
1398013980
byte* output;
1398113981
word32 idx;
1398213982
int ret = WS_SUCCESS;
13983-
int authSz;
13983+
int authSz = 0;
1398413984
char authStr[MAX_AUTH_STRING];
1398513985

1398613986
WLOG(WS_LOG_DEBUG, "Entering SendUserAuthFailure()");
@@ -14503,7 +14503,7 @@ int SendChannelEow(WOLFSSH* ssh, word32 peerChannelId)
1450314503
byte* output;
1450414504
const char* str = "eow@openssh.com";
1450514505
word32 idx;
14506-
word32 strSz;
14506+
word32 strSz = 0;
1450714507
int ret = WS_SUCCESS;
1450814508
WOLFSSH_CHANNEL* channel = NULL;
1450914509

@@ -14560,7 +14560,7 @@ int SendChannelExit(WOLFSSH* ssh, word32 peerChannelId, int status)
1456014560
byte* output;
1456114561
const char* str = "exit-status";
1456214562
word32 idx;
14563-
word32 strSz;
14563+
word32 strSz = 0;
1456414564
int ret = WS_SUCCESS;
1456514565
WOLFSSH_CHANNEL* channel = NULL;
1456614566

0 commit comments

Comments
 (0)