Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fw32.git;a=commitdiff;h=2c9e712b5bc71609f198c80ceea0d22df9fa08b4

commit 2c9e712b5bc71609f198c80ceea0d22df9fa08b4
Author: James Buren <r...@frugalware.org>
Date:   Wed Nov 9 06:38:15 2011 -0600

fw32.c: add additional asserts

diff --git a/fw32.c b/fw32.c
index c6e7157..db4d47f 100644
--- a/fw32.c
+++ b/fw32.c
@@ -297,6 +297,8 @@ pacman_g2(char **args1)
pid_t id;
int status;

+  assert(args1);
+
umount_all();

mount_directory("/var/cache/pacman-g2/pkg");
@@ -336,6 +338,8 @@ pacman_g2(char **args1)
static int
nftw_cb(const char *path,const struct stat *st,int type,struct FTW *buf)
{
+  assert(path && st && buf);
+
if(remove(path))
return 1;
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to