1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

* Fixed segfault when configuration doesn't contain TEXT block (thanks

Pippijn).

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1098 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2008-04-02 02:12:57 +00:00
parent 011f03b50d
commit fa94cac75f
2 changed files with 10 additions and 0 deletions

View File

@ -1,5 +1,9 @@
# $Id$
2008-04-01
* Fixed segfault when configuration doesn't contain TEXT block (thanks
Pippijn).
2008-03-31
* Conky 1.5.1 released.
* Added --enable-testing configure option to use insane compiler flags.

View File

@ -8398,6 +8398,9 @@ static void load_config_file(const char *f)
}
}
fclose(fp);
if (strlen(text) < 1) {
CRIT_ERR("no text supplied in configuration; exiting");
}
text_lines = line + 1;
return;
}
@ -8436,6 +8439,9 @@ static void load_config_file(const char *f)
// default to update_interval
info.music_player_interval = update_interval;
}
if (!text) { // didn't supply any text
CRIT_ERR("missing text block in configuration; exiting");
}
}
/* : means that character before that takes an argument */