Merge pull request #128 from miconda/master

Get rid of compile warning for clang and added tags/vim swap files to git ignore
This commit is contained in:
Kaian 2016-07-08 15:17:04 +02:00 committed by GitHub
commit 789c85aa40
2 changed files with 9 additions and 1 deletions

8
.gitignore vendored
View File

@ -30,3 +30,11 @@ test-driver
# Ignore Doxygen generated files
doc/html
# Tags file
tags
TAGS
# Vim swap files
.*.swp
.*.swo

View File

@ -191,7 +191,7 @@ int
setting_has_value(int id, const char *value)
{
setting_t *sett = setting_by_id(id);
if (sett && sett->value) {
if (sett) {
return !strcmp(sett->value, value);
}