[BusyBox-cvs] busybox/shell ash.c,1.67,1.68

Erik Andersen andersen at codepoet.org
Tue Jan 14 06:40:16 UTC 2003


Update of /var/cvs/busybox/shell
In directory winder:/tmp/cvs-serv11346/shell

Modified Files:
	ash.c 
Log Message:
Only call free if it is necessary


Index: ash.c
===================================================================
RCS file: /var/cvs/busybox/shell/ash.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- ash.c	6 Jan 2003 16:27:07 -0000	1.67
+++ ash.c	14 Jan 2003 06:40:11 -0000	1.68
@@ -1830,7 +1830,8 @@
 		getpwd();
 	else
 		curdir = simplify_path(val);
-	free(cated);
+	if (cated)
+		free(cated);
 	INTON;
 	setvar("PWD", curdir, VEXPORT);
 }




More information about the busybox-cvs mailing list