NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-alpha/50667: [src/sys/arch/alpha/alpha/interrupt.c:522]: (error) va_list 'ap' used before va_start() was called.



>Number:         50667
>Category:       port-alpha
>Synopsis:       [src/sys/arch/alpha/alpha/interrupt.c:522]: (error) va_list 'ap' used before va_start() was called.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 17 09:30:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160116
>Organization:
>Environment:
>Description:
void
rlprintf(struct timeval *t, const char *fmt, ...)
{
    va_list ap;
    static const struct timeval msgperiod[1] = {{ 5, 0 }};

    if (ratecheck(t, msgperiod))
        vprintf(fmt, ap);
}

I think ap needs to be initialised to something before use.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index