[GRASS-SVN] r73516 - grass/trunk/lib/segment
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 10 05:58:27 PDT 2018
Author: mmetz
Date: 2018-10-10 05:58:27 -0700 (Wed, 10 Oct 2018)
New Revision: 73516
Modified:
grass/trunk/lib/segment/flush.c
Log:
libsegment: fix for all-in-memory cache
Modified: grass/trunk/lib/segment/flush.c
===================================================================
--- grass/trunk/lib/segment/flush.c 2018-10-10 04:20:35 UTC (rev 73515)
+++ grass/trunk/lib/segment/flush.c 2018-10-10 12:58:27 UTC (rev 73516)
@@ -33,9 +33,11 @@
{
int i;
- for (i = 0; i < SEG->nseg; i++)
- if (SEG->scb[i].n >= 0 && SEG->scb[i].dirty)
- seg_pageout(SEG, i);
+ if (SEG->scb) {
+ for (i = 0; i < SEG->nseg; i++)
+ if (SEG->scb[i].n >= 0 && SEG->scb[i].dirty)
+ seg_pageout(SEG, i);
+ }
return 0;
}
More information about the grass-commit
mailing list