* [patch] logger::delete_saved_messages
@ 2003-12-17 19:58 Dave Brolley
2003-12-17 20:08 ` Dave Brolley
0 siblings, 1 reply; 2+ messages in thread
From: Dave Brolley @ 2003-12-17 19:58 UTC (permalink / raw)
To: sid
[-- Attachment #1: Type: text/plain, Size: 168 bytes --]
This corrects the clearing of saved_messages and saved_levels. The
previous code was just plain incorrect and caused memory access problems
on some platforms.
Dave
[-- Attachment #2: logger.ChangeLog --]
[-- Type: text/plain, Size: 111 bytes --]
2003-12-17 Dave Brolley <brolley@redhat.com>
* sidmiscutil.h (delete_saved_messages): Use 'clear' method.
[-- Attachment #3: logger.patch.txt --]
[-- Type: text/plain, Size: 1177 bytes --]
Index: sid/include/sidmiscutil.h
===================================================================
RCS file: /cvs/src/src/sid/include/sidmiscutil.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -c -p -r1.7 -r1.8
*** sid/include/sidmiscutil.h 21 Oct 2003 21:38:24 -0000 1.7
--- sid/include/sidmiscutil.h 17 Dec 2003 19:51:02 -0000 1.8
***************
*** 1,6 ****
// sidmiscutil.h - Useful utility classes. -*- C++ -*-
! // Copyright (C) 1999-2002 Red Hat.
// This file is part of SID and is licensed under the GPL.
// See the file COPYING.SID for conditions for redistribution.
--- 1,6 ----
// sidmiscutil.h - Useful utility classes. -*- C++ -*-
! // Copyright (C) 1999-2003 Red Hat.
// This file is part of SID and is licensed under the GPL.
// See the file COPYING.SID for conditions for redistribution.
*************** namespace sidutil
*** 526,532 ****
public:
void delete_saved_messages ()
{
! saved_messages.erase (saved_messages.end ());
}
};
--- 526,533 ----
public:
void delete_saved_messages ()
{
! saved_messages.clear ();
! saved_levels.clear ();
}
};
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] logger::delete_saved_messages
2003-12-17 19:58 [patch] logger::delete_saved_messages Dave Brolley
@ 2003-12-17 20:08 ` Dave Brolley
0 siblings, 0 replies; 2+ messages in thread
From: Dave Brolley @ 2003-12-17 20:08 UTC (permalink / raw)
To: Dave Brolley; +Cc: sid
I forgot to mention that this is already committed.
Dave Brolley wrote:
> This corrects the clearing of saved_messages and saved_levels. The
> previous code was just plain incorrect and caused memory access
> problems on some platforms.
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-12-17 20:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-17 19:58 [patch] logger::delete_saved_messages Dave Brolley
2003-12-17 20:08 ` Dave Brolley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).