aboutsummaryrefslogtreecommitdiffstats
path: root/daemon/dest_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/dest_file.c')
-rw-r--r--daemon/dest_file.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/daemon/dest_file.c b/daemon/dest_file.c
index 7ede68c..c4d3cfe 100644
--- a/daemon/dest_file.c
+++ b/daemon/dest_file.c
@@ -67,19 +67,19 @@ static gboolean compare_current_and_first_messages( struct file_writer* writer )
{
TRACE_ENTER( "%p\n", writer );
- if( string_compare( writer->current_msg->hostname,
- writer->first_msg->hostname )
- || string_compare( writer->current_msg->message,
- writer->first_msg->message ) )
+ if( string_equal( writer->current_msg->hostname,
+ writer->first_msg->hostname )
+ && string_equal( writer->current_msg->message,
+ writer->first_msg->message ) )
{
- release_message( writer->first_msg );
- writer->first_msg = NULL;
- TRACE_LEAVE( "%p done; messages aren't identical\n", writer );
- return FALSE;
+ TRACE_LEAVE( "%p ok\n" );
+ return TRUE;
}
- TRACE_LEAVE( "%p ok\n" );
- return TRUE;
+ release_message( writer->first_msg );
+ writer->first_msg = NULL;
+ TRACE_LEAVE( "%p done; messages aren't identical\n", writer );
+ return FALSE;
}
/******************************************************************************