ia64/xen-unstable

changeset 15275:91301122db51

console daemon: Fix realloc() usage.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Jun 05 10:00:15 2007 +0100 (2007-06-05)
parents f45c84dd5f41
children 4f05a587cb6b
files tools/console/daemon/io.c
line diff
     1.1 --- a/tools/console/daemon/io.c	Tue Jun 05 09:59:34 2007 +0100
     1.2 +++ b/tools/console/daemon/io.c	Tue Jun 05 10:00:15 2007 +0100
     1.3 @@ -191,6 +191,7 @@ static int create_domain_log(struct doma
     1.4  		free(namepath);
     1.5  		return -1;
     1.6  	}
     1.7 +	namepath = s;
     1.8  	strcat(namepath, "/name");
     1.9  	data = xs_read(xs, XBT_NULL, namepath, &len);
    1.10  	if (!data)