fix scan_font nonsense
authorPhilip Kovacs <pkovacs@users.sourceforge.net>
Tue, 5 Jun 2007 18:54:39 +0000 (18:54 +0000)
committerPhilip Kovacs <pkovacs@users.sourceforge.net>
Tue, 5 Jun 2007 18:54:39 +0000 (18:54 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@877 7f574dfc-610e-0410-a909-a81674777703

src/conky.c

index 0eb9902..c7bd154 100644 (file)
@@ -679,7 +679,7 @@ static const char *scan_bar(const char *args, int *w, int *h)
 
 static char *scan_font(const char *args)
 {
-       if (args && sizeof(args) < 127) {
+  if (args && *args)
                return strdup(args);
        }
        return NULL;