• Andrei Elkin's avatar
    Bug #52304 valgrind does not like to print un-inited string in Protocol_text::store() · 649ec775
    Andrei Elkin authored
    The reason of the failure was apparent flaw in that a pointer to an uninitialized buffer was
    passed to DBUG_PRINT of Protocol_text::store().
    
    Fixed with splitting the print-out into two branches: 
    one with length zero of the problematic arg and the rest.
    
    
    sql/protocol.cc:
      correcting DBUG_PRINT to print out `from' with a care because one may be uninitialized in the caller.
    649ec775
protocol.cc 35.4 KB