]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Tidied up some string stuff
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 15 Dec 2005 18:47:58 +0000 (18:47 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 15 Dec 2005 18:47:58 +0000 (18:47 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2488 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspircd_io.cpp

index 2faa7e0abae8ae3adef65143b5b587bac49d2566..b1e90bfd0b7c0eb296bd5d72271bef9cb1d5d3b6 100644 (file)
@@ -916,9 +916,9 @@ int ServerConfig::ReadConf(std::stringstream *config, const char* tag, const cha
                                                else
                                                {
                                                        key+=strlen(var);
-                                                       while (key[0] !='"')
+                                                       while (*key !='"')
                                                        {
-                                                               if (!strlen(key))
+                                                               if (!*key)
                                                                {
                                                                        /* missing quote */
                                                                        strcpy(result,"");