From be8e844ec731a7885bbee37a2f977ed4dae2a3c7 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 10 Jul 2016 12:24:34 -0400 Subject: compile fixes --- src/libtracelog/libtracelog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libtracelog') diff --git a/src/libtracelog/libtracelog.c b/src/libtracelog/libtracelog.c index 0a6d8299f..3e65587c4 100644 --- a/src/libtracelog/libtracelog.c +++ b/src/libtracelog/libtracelog.c @@ -92,7 +92,7 @@ static void storage_add(const char *str) { } // global variable to keep current working directory -char* cwd = NULL; +static char* cwd = NULL; static char *storage_find(const char *str) { #ifdef DEBUG @@ -108,7 +108,7 @@ static char *storage_find(const char *str) { int allocated = 0; if (strstr(str, "..") || strstr(str, "/./") || strstr(str, "//") || str[0] != '/') { - if (cwd != NULL & str[0] != '/') { + if (cwd != NULL && str[0] != '/') { char *fullpath=malloc(PATH_MAX); if (!fullpath) { fprintf(stderr, "Error: cannot allocate memory\n"); -- cgit v1.2.3-70-g09d2