Changeset 131:5c50eb890cf2 in roaraudio


Ignore:
Timestamp:
07/14/08 04:04:44 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

make valgrind happy: initialise unused memory

Location:
libroar
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libroar/auth.c

    r0 r131  
    55int roar_auth   (struct roar_connection * con) { 
    66 struct roar_message mes; 
     7 
     8 memset(&mes, 0, sizeof(struct roar_message)); // make valgrind happy! 
    79 
    810 mes.cmd     = ROAR_CMD_AUTH; 
  • libroar/meta.c

    r123 r131  
    6767 struct roar_message m; 
    6868 int len; 
     69 
     70 memset(&m, 0, sizeof(struct roar_message)); // make valgrind happy! 
    6971 
    7072 m.cmd     = ROAR_CMD_SET_META; 
Note: See TracChangeset for help on using the changeset viewer.