mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 04:17:33 +00:00
fix scan_font nonsense
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@877 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
2c8426dcc7
commit
a2cfdd4c67
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user