The compiler warns about the "save_ptr" argument to strtok_r being
unitialized. This cleans that up.
static int
ssl_open(const char *name, char *suffix, struct vconn **vconnp)
{
- char *save_ptr, *host_name, *port_string;
+ char *save_ptr = NULL;
+ char *host_name, *port_string;
struct sockaddr_in sin;
int retval;
int fd;
static int
tcp_open(const char *name, char *suffix, struct vconn **vconnp)
{
- char *save_ptr;
+ char *save_ptr = NULL;
const char *host_name;
const char *port_string;
struct sockaddr_in sin;
char *
vlog_set_levels_from_string(const char *s_)
{
- char *save_ptr;
+ char *save_ptr = NULL;
char *s = xstrdup(s_);
char *module, *facility;
static int
open_collector(char *dst)
{
- char *save_ptr;
+ char *save_ptr = NULL;
const char *host_name;
const char *port_string;
struct sockaddr_in sin;