- add some parens to fix the segfault
authorMichael Schroeder <mls@suse.de>
Mon, 13 Oct 2008 11:50:35 +0000 (11:50 +0000)
committerMichael Schroeder <mls@suse.de>
Mon, 13 Oct 2008 11:50:35 +0000 (11:50 +0000)
src/repo_solv.c

index 94cf19f..3a01795 100644 (file)
@@ -1044,7 +1044,7 @@ printf("pop flexarray %d %d\n", keydepth, nentries);
       if (keydepth <= 2)
        {
          if (keydepth == 0)
-           data.mainschemaoffsets[keyp - 1 - schemadata + schemata[data.mainschema]] = data.incoredatalen;
+           data.mainschemaoffsets[keyp - 1 - (schemadata + schemata[data.mainschema])] = data.incoredatalen;
          /* read data chunk to dp */
          if (data.error)
            break;