1/*	$NetBSD: assigndefined.c,v 1.1.1.2 2012/07/22 13:44:38 darrenr Exp $	*/
2
3/*
4 * Copyright (C) 2012 by Darren Reed.
5 *
6 * See the IPFILTER.LICENCE file for details on licencing.
7 *
8 * Id: assigndefined.c,v 1.1.1.2 2012/07/22 13:44:38 darrenr Exp $
9 */
10
11#include "ipf.h"
12
13void assigndefined(env)
14	char *env;
15{
16	char *s, *t;
17
18	if (env == NULL)
19		return;
20
21	for (s = strtok(env, ";"); s != NULL; s = strtok(NULL, ";")) {
22		t = strchr(s, '=');
23		if (t == NULL)
24			continue;
25		*t++ = '\0';
26		set_variable(s, t);
27		*--t = '=';
28	}
29}
30