archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / parcellite / trunk / fix-crash.patch
bloba8ce712e1ab7b319f5609fe59da1df18c7ab7dd9
1 --- a/src/preferences.c.orig 2013-11-11 14:39:32.000000000 +0400
2 +++ b/src/preferences.c 2013-11-11 14:40:03.970776522 +0400
3 @@ -381,7 +381,7 @@
4 }
5 /**now go through and make sure we have no duplicates */
6 for (i=0;NULL != keylist[i].name; ++i){
7 - if(0 != keylist[i].keyval[0]){
8 + if(NULL != keylist[i].keyval && 0 != keylist[i].keyval[0]){
9 /**see if it exists elsewhere */
10 for (l=0;NULL != keylist[l].name; ++l){
11 if(l!=i && 0 != keylist[l].keyval[0]){