* emulate it using the KAME implementation. */
#include "rsync.h"
+#include "ifuncs.h"
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
{
char *prog = getenv("RSYNC_CONNECT_PROG");
- if (strchr(prog, '%')) {
+ if (prog && strchr(prog, '%')) {
int hlen = strlen(host);
int len = strlen(prog) + 1;
char *f, *t;