From f30dafaec9b11a7b17a175a1fe9c7f26e82e84a4 Mon Sep 17 00:00:00 2001
From: an7s <an7s@git.zephyr-software.com>
Date: Mon, 17 Feb 2014 15:28:36 +0000
Subject: [PATCH] Fixed bug in iteration over sigs?

Former-commit-id: 614aa9fafb5641d0a4a3ea854403aa1a6c615e4d
---
 appfw/src/appfw.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/appfw/src/appfw.cpp b/appfw/src/appfw.cpp
index eca538e7b..c86b5db13 100644
--- a/appfw/src/appfw.cpp
+++ b/appfw/src/appfw.cpp
@@ -843,10 +843,10 @@ extern "C" int appfw_establish_taint_fast2(const char *command, char *taint, int
 		++next;	
 		int length_signature = strlen(sig);
 		pos = 0;
-/*
+
 		if(length_signature==1 && isalpha(*sig))
 			continue;
-*/
+
 		while (pos < commandLength)
 		{
 			if (((case_sensitive  && strncmp    (&command[pos], sig, length_signature) == 0)) || 
@@ -868,7 +868,7 @@ extern "C" int appfw_establish_taint_fast2(const char *command, char *taint, int
 					{
 						if(verbose)
 							fprintf(stderr,"moving to front\n");
-						mru_sigs->erase(it);
+						next = mru_sigs->erase(it);
 						mru_sigs->push_front(sig);
 						if(verbose)
 							fprintf(stderr,"done moving to front\n");
-- 
GitLab