mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
Merge pull request #157 from PartialVolume/fix_segfault_and_missing_log_lines
Fix segfault & missing log lines
This commit is contained in:
@@ -280,10 +280,6 @@ void nwipe_log( nwipe_log_t level, const char* format, ... )
|
||||
{
|
||||
printf( "%s\n", log_lines[log_current_element] );
|
||||
}
|
||||
else
|
||||
{
|
||||
log_current_element++;
|
||||
}
|
||||
} else
|
||||
{
|
||||
/* Open the log file for appending. */
|
||||
@@ -343,6 +339,8 @@ void nwipe_log( nwipe_log_t level, const char* format, ... )
|
||||
}
|
||||
}
|
||||
|
||||
log_current_element++;
|
||||
|
||||
r = pthread_mutex_unlock( &mutex1 );
|
||||
if ( r !=0 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user