Skip to content

Commit 84720ef

Browse files
committed
Work in progress
1 parent 6052e38 commit 84720ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/common/commonutils/CrashHandler.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ void CheckForPreviousCrash(const char* logFileName, OsConfigLogHandle log)
9090
char* endOfFile = NULL;
9191
char* crashStart = NULL;
9292
char* p = NULL;
93-
size_t lenght = 0;
9493

9594
if ((NULL == logFileName) || (false == FileExists(logFileName)))
9695
{
@@ -109,7 +108,7 @@ void CheckForPreviousCrash(const char* logFileName, OsConfigLogHandle log)
109108
{
110109
if (EOL == *p)
111110
{
112-
*p = (NULL == *(p + 1)) ? 0 : ';';
111+
*p = (*(p + 1)) ? ';' : 0;
113112
}
114113
p++;
115114
}

0 commit comments

Comments
 (0)