SF.net SVN: geany:[5214] trunk/tagmanager/lregex.c

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Sep 9 14:44:41 UTC 2010


Revision: 5214
          http://geany.svn.sourceforge.net/geany/?rev=5214&view=rev
Author:   ntrel
Date:     2010-09-09 14:44:41 +0000 (Thu, 09 Sep 2010)

Log Message:
-----------
Move useless assert.

Modified Paths:
--------------
    trunk/tagmanager/lregex.c

Modified: trunk/tagmanager/lregex.c
===================================================================
--- trunk/tagmanager/lregex.c	2010-09-09 14:30:18 UTC (rev 5213)
+++ trunk/tagmanager/lregex.c	2010-09-09 14:44:41 UTC (rev 5214)
@@ -145,11 +145,11 @@
 static void makeRegexTag (
 		const vString* const name, const struct sKind* const kind)
 {
+	Assert (kind != NULL);
 	if (kind->enabled)
 	{
 		tagEntryInfo e;
 		Assert (name != NULL  &&  vStringLength (name) > 0);
-		Assert (kind != NULL);
 		initTagEntry (&e, vStringValue (name));
 		e.kind     = kind->letter;
 		e.kindName = kind->name;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list