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:
parent
011f03b50d
commit
fa94cac75f
@ -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.
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user