# HG changeset patch # User Daniel Atallah # Date 1185934396 0 # Node ID 9cec393c3a21d79b51882c6e44210107233200b2 # Parent 542af7636303b26c9eb0b3d70f327eb55d5a4886 Fix #2349 (null pointer deref in log_reader plugin). diff -r 542af7636303 -r 9cec393c3a21 libpurple/plugins/log_reader.c --- a/libpurple/plugins/log_reader.c Wed Aug 01 01:34:53 2007 +0000 +++ b/libpurple/plugins/log_reader.c Wed Aug 01 02:13:16 2007 +0000 @@ -874,7 +874,8 @@ GString *text = NULL; xmlnode *message; - *flags = PURPLE_LOG_READ_NO_NEWLINE; + if (flags != NULL) + *flags = PURPLE_LOG_READ_NO_NEWLINE; g_return_val_if_fail(log != NULL, g_strdup("")); data = log->logger_data;