Skip to content

Commit b9ba65d

Browse files
committed
Tightened code to avoid possible unexpected runtime errors during token callback
1 parent 6349a79 commit b9ba65d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: doc/src/release_notes.rst

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ Thin Mode Changes
5050
Thick Mode Changes
5151
+++++++++++++++++++
5252

53+
#) Tightened code to avoid possible unexpected runtime errors during token
54+
callback.
55+
5356
#) Fixed an issue that caused unexpected behavior with SODA functions in
5457
some platforms.
5558

Diff for: src/njsTokenCallback.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ static void njsTokenCallback_processNotification(uv_async_t *handle)
154154
static bool njsTokenCallback_processNotificationHelper(
155155
njsTokenCallback *callback)
156156
{
157-
napi_value jsAccessTokenConfig, jsCallback, jsCallbackHandler, jsPool, refresh, result;
157+
napi_value jsAccessTokenConfig = napi_undefined, jsCallback,
158+
jsCallbackHandler, jsPool, refresh, result;
158159
napi_value jsCallbackArgs[4], externalObj;
159160
napi_env env = callback->env;
160161

0 commit comments

Comments
 (0)