From 0c63936aedbdd5c300088ea6bc079d6e9f841f13 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Tue, 17 Dec 2019 16:09:59 +0000 Subject: [PATCH] Initialize starting value in libedit deduplicate function --- eeschema/libedit/libedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/libedit/libedit.cpp b/eeschema/libedit/libedit.cpp index 684f779597..efaa332951 100644 --- a/eeschema/libedit/libedit.cpp +++ b/eeschema/libedit/libedit.cpp @@ -680,7 +680,7 @@ void LIB_EDIT_FRAME::fixDuplicateAliases( LIB_PART* aPart, const wxString& aLibr { wxCHECK( aPart, /* void */ ); - int i; + int i = 1; wxString newName; // Append a number to the name until the name is unique in the library.