X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fplugin.c;h=c3e21ec49c81fcf29a60ab7d963d36c5653e0cf1;hb=5e3ab28bab78e07553b7b44fe7c7c7b20c9d2fd3;hp=ca86aca439a691f74d80459a7c8c71ec46d23c22;hpb=1593473d6e27dbfca1a5f6b2c96acc2d902a19b6;p=chaz%2Fopenbox diff --git a/openbox/plugin.c b/openbox/plugin.c index ca86aca4..c3e21ec4 100644 --- a/openbox/plugin.c +++ b/openbox/plugin.c @@ -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); }