From d3f115b3a2d228c900f5b5a8ba586415bc517a9a Mon Sep 17 00:00:00 2001 From: Josiah Baldwin Date: Mon, 15 Nov 2021 12:06:14 -0800 Subject: [PATCH] Fixed missing initialization of new variable. --- meshuser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshuser.js b/meshuser.js index fc4b0ebd..9b13cbd5 100644 --- a/meshuser.js +++ b/meshuser.js @@ -2006,7 +2006,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use if (group != null) { if (group.links == null) { group.links = {}; } - var unknownUsers = [], addedCount = 0, failCount = 0, knownUsers; + var unknownUsers = [], addedCount = 0, failCount = 0, knownUsers = []; for (var i in command.usernames) { // Check if the user exists var chguserid = 'user/' + addUserDomain.id + '/' + command.usernames[i].toLowerCase();