Changeset 4704:eeb6e758fced in roaraudio


Ignore:
Timestamp:
01/06/11 01:05:03 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

prepare better NULL handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/roard/protocol-gopher.c

    r4703 r4704  
    7878 void * data; 
    7979 char * chardata; 
     80 char * host; 
     81 unsigned int port; 
    8082 
    8183 for (i = 0; i < menu->items_len; i++) { 
     
    9193    break; 
    9294   default: 
    93      snprintf(data, len-1, "%c%s\t%s\t%s\t%u\r\n", item->type, item->name, item->selector, item->host, item->port); 
     95     host = item->host; 
     96     port = item->port; 
     97     snprintf(data, len-1, "%c%s\t%s\t%s\t%u\r\n", item->type, item->name, item->selector, host, port); 
    9498    break; 
    9599  } 
Note: See TracChangeset for help on using the changeset viewer.