From 26995b10fb133d9f145fedd4d7f9590b464aad77 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 22 Feb 2021 10:07:40 -0800 Subject: [PATCH] Fix uninitialized ptr --- pcbnew/netlist_reader/netlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/netlist_reader/netlist.cpp b/pcbnew/netlist_reader/netlist.cpp index 52d48b6b86..17c3efdf8f 100644 --- a/pcbnew/netlist_reader/netlist.cpp +++ b/pcbnew/netlist_reader/netlist.cpp @@ -137,7 +137,7 @@ void PCB_EDIT_FRAME::LoadFootprints( NETLIST& aNetlist, REPORTER& aReporter ) LIB_ID lastFPID; COMPONENT* component; FOOTPRINT* footprint = nullptr; - FOOTPRINT* fpOnBoard; + FOOTPRINT* fpOnBoard = nullptr; if( aNetlist.IsEmpty() || Prj().PcbFootprintLibs()->IsEmpty() ) return;