Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwpl.git;a=commitdiff;h=1169e01d18d5e8b4c9b593db9b3c28b1fa46fc3a

commit 1169e01d18d5e8b4c9b593db9b3c28b1fa46fc3a
Author: James Buren <r...@frugalware.org>
Date:   Thu Sep 17 18:02:34 2009 -0500

utility.c
* add asserts to regmatch

diff --git a/src/utility.c b/src/utility.c
index ab263c7..065e31d 100644
--- a/src/utility.c
+++ b/src/utility.c
@@ -57,6 +57,8 @@ bool regmatch(const char *str,const char *pat) {
int flags;
bool ret;

+  assert(str and pat);
+
flags = REG_EXTENDED | REG_NOSUB;

ret = true;
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to