Committer: Diego Biurrun <diego@xxxxxxxxxx> Date: 13/04/2010 at 19:23:10 Revision: 4265 Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Branch nick: trunk Log: Initialize port variable to 0. This fixes the following warning, which gets triggered in certain circumstances: xx (there were encoding issues in this line) xx Modified: M i3/i3_client/http.c === modified file 'i3/i3_client/http.c' --- i3/i3_client/http.c 2010-04-13 10:58:26 +0000 +++ i3/i3_client/http.c 2010-04-13 16:22:26 +0000 @@ -204,14 +204,13 @@ char ip_addr[IP_LEN]; char id[STR_ID_LEN]; char status; - int port; Coordinates coord; struct sockaddr_in socketaddr; struct hostent *hostaddr; struct servent *servaddr; struct protoent *protocol; char *p, *next; - int offset = 0; + int offset = 0, port = 0; /* get host name and format the get command */ get_args(web_url, host, get_cmd, &port, STR_LEN);