From db2c31decc4b21a8d0580018b82b5f7e18ad7da7 Mon Sep 17 00:00:00 2001 From: Slava Zanko Date: Thu, 13 Dec 2012 23:00:15 +0400 Subject: [PATCH] Add extra checks in macro engine. Signed-off-by: Ilia Maslakov --- src/editor/editcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/editcmd.c b/src/editor/editcmd.c index 7bf2c784e..9ff99daca 100644 --- a/src/editor/editcmd.c +++ b/src/editor/editcmd.c @@ -1944,7 +1944,7 @@ edit_load_macro_cmd (WEdit * edit) macros_config = mc_config_init (macros_fname, TRUE); g_free (macros_fname); - if (macros_config == NULL) + if (macros_config == NULL || macros_list == NULL || macros_list->len != 0) return FALSE; profile_keys = keys = mc_config_get_keys (macros_config, section_name, &len);