avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [bug #21076] -vvvv serial receive prints are empty in Win3


From: Joerg Wunsch
Subject: [avrdude-dev] [bug #21076] -vvvv serial receive prints are empty in Win32 build
Date: Fri, 14 Sep 2007 09:04:37 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417

URL:
  <http://savannah.nongnu.org/bugs/?21076>

                 Summary: -vvvv serial receive prints are empty in Win32
build
                 Project: AVR Downloader/UploaDEr
            Submitted by: joerg_wunsch
            Submitted on: Friday 09/14/2007 at 11:04
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Joerg Wunsch
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

It turns out the variable "len" which is used to control the
loop is never assigned.

Good item to demonstrate why you'd rather *not* blindly
initialize all local variables by default in their definition,
like:

static int ser_recv(union filedescriptor *fd, unsigned char * buf, size_t
buflen)
{
        unsigned char c;
        unsigned char * p = buf;
        size_t len = 0;
                   ^^^^




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?21076>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]