]> Dogcows Code - chaz/openbox/commitdiff
skip better
authorDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 01:29:25 +0000 (01:29 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 01:29:25 +0000 (01:29 +0000)
openbox/plugin.c

index ca86aca439a691f74d80459a7c8c71ec46d23c22..c3e21ec49c81fcf29a60ab7d963d36c5653e0cf1 100644 (file)
@@ -148,13 +148,10 @@ void plugin_loadall()
         /* load the plugins in the rc file */
         while (g_io_channel_read_line(io, &name, NULL, NULL, &err) ==
                G_IO_STATUS_NORMAL) {
-            int i = 0;
-            while (name[++i-1] == ' ' || name[i-1] == '\t');
-            if (name[i] != '\0' && name[i] != '#') {
-                g_strstrip(name);
+            g_strstrip(name);
+            if (name[0] != '\0' && name[0] != '#')
                 plugin_open(name);
-                g_free(name);
-            }
+            g_free(name);
         }
         g_io_channel_unref(io);
     }
This page took 0.022576 seconds and 4 git commands to generate.