From 56373380bfed4bef3e5ae4493e0e622806529ed6 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 1 Dec 2013 21:04:07 +0100 Subject: Protect file string. --- src/drumkitparser.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drumkitparser.cc b/src/drumkitparser.cc index d838346..1b7ecaf 100644 --- a/src/drumkitparser.cc +++ b/src/drumkitparser.cc @@ -44,6 +44,8 @@ DrumKitParser::DrumKitParser(const std::string &kitfile, DrumKit &k) // DEBUG(kitparser, "Parsing drumkit in %s\n", kitfile.c_str()); if(!fd) return; + + kit._file = kitfile; } DrumKitParser::~DrumKitParser() -- cgit v1.2.3