From 022c71140982c382518d900ac6eb4b2f260abb90 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 22 Dec 2011 21:26:57 +0000 Subject: [PATCH] Clear the command output variable when a hotkey fails to match to be safe Originally committed to SVN as r6111. --- aegisub/libaegisub/common/hotkey.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/aegisub/libaegisub/common/hotkey.cpp b/aegisub/libaegisub/common/hotkey.cpp index c76995fbc..71cf476f3 100644 --- a/aegisub/libaegisub/common/hotkey.cpp +++ b/aegisub/libaegisub/common/hotkey.cpp @@ -120,6 +120,7 @@ bool Hotkey::Scan(const std::string &context, const std::string &str, bool alway return true; } + cmd.clear(); return false; }