aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtracelog/libtracelog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtracelog/libtracelog.c')
-rw-r--r--src/libtracelog/libtracelog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libtracelog/libtracelog.c b/src/libtracelog/libtracelog.c
index 0f8d5a00d..3e74051f8 100644
--- a/src/libtracelog/libtracelog.c
+++ b/src/libtracelog/libtracelog.c
@@ -181,7 +181,9 @@ static void load_blacklist(void) {
181 181
182 // extract blacklists 182 // extract blacklists
183 char buf[MAXBUF]; 183 char buf[MAXBUF];
184#ifdef DEBUG
184 int cnt = 0; 185 int cnt = 0;
186#endif
185 while (fgets(buf, MAXBUF, fp)) { 187 while (fgets(buf, MAXBUF, fp)) {
186 if (strncmp(buf, "sandbox pid: ", 13) == 0) { 188 if (strncmp(buf, "sandbox pid: ", 13) == 0) {
187 char *ptr = strchr(buf, '\n'); 189 char *ptr = strchr(buf, '\n');
@@ -202,7 +204,9 @@ static void load_blacklist(void) {
202 if (ptr) 204 if (ptr)
203 *ptr = '\0'; 205 *ptr = '\0';
204 storage_add(buf + 10); 206 storage_add(buf + 10);
207#ifdef DEBUG
205 cnt++; 208 cnt++;
209#endif
206 } 210 }
207 } 211 }
208 fclose(fp); 212 fclose(fp);