From c5504eafbce9ab0ea4d9aa7f222d7b75a6c77531 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Thu, 13 May 2010 23:53:32 +0000 Subject: 2010-05-13 Michael Snyder * charset.c: White space. * c-lang.c: White space. * cli-out.c: White space. * coffread.c: White space. * complaints.c: White space. * completer.c: White space. * corefile.c: White space. * corelow.c: White space. * cp-abi.c: White space. * cp-namespace.c: White space. * cp-support.c: White space. * cp-valprint.c: White space. * c-typeprint.c: White space. * c-valprint.c: White space. --- gdb/complaints.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/complaints.c') diff --git a/gdb/complaints.c b/gdb/complaints.c index fa63418..476f3f4 100644 --- a/gdb/complaints.c +++ b/gdb/complaints.c @@ -171,6 +171,7 @@ vcomplaint (struct complaints **c, const char *file, int line, const char *fmt, struct complaints *complaints = get_complaints (c); struct complain *complaint = find_complaint (complaints, file, line, fmt); enum complaint_series series; + gdb_assert (complaints != NULL); complaint->counter++; @@ -243,6 +244,7 @@ void complaint (struct complaints **complaints, const char *fmt, ...) { va_list args; + va_start (args, fmt); vcomplaint (complaints, NULL/*file*/, 0/*line*/, fmt, args); va_end (args); -- cgit v1.1