~compiz-team/compiz/compiz.fix_1063617.2

« back to all changes in this revision

Viewing changes to compizconfig/libcompizconfig/src/main.c

  • Committer: Tarmac
  • Author(s): Daniel van Vugt
  • Date: 2012-11-19 12:49:21 UTC
  • mfrom: (3473.2.2 fix-1080555)
  • Revision ID: tarmac-20121119124921-pkuje4ut04vsbpel
Fix segfaults in test cases (LP: #1080555)
. Fixes: https://bugs.launchpad.net/bugs/1080555.

Approved by PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5727
5727
 
5728
5728
    while (iter)
5729
5729
    {
5730
 
        if ((*pred) (iter->data, data))
 
5730
        if (iter->data != NULL && pred (iter->data, data))
5731
5731
            returnList = ccsIntegratedSettingListAppend (returnList, iter->data);
5732
5732
 
5733
5733
        iter = iter->next;