File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.22 1998/07/21 04:17:23 momjian Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/libpq/be-fsstubs.c,v 1.23 1998/07/22 05:48:59 vadim Exp $
11
11
*
12
12
* NOTES
13
13
* This should be moved to a more appropriate place. It is here
@@ -375,14 +375,18 @@ lo_export(Oid lobjId, text *filename)
375
375
void
376
376
_lo_commit (void )
377
377
{
378
- int i ;
378
+ int i ;
379
379
MemoryContext currentContext ;
380
380
381
+ if (fscxt == NULL )
382
+ return ;
383
+
381
384
currentContext = MemoryContextSwitchTo ((MemoryContext ) fscxt );
382
385
383
- for (i = 0 ; i < MAX_LOBJ_FDS ; i ++ ) {
384
- if (cookies [i ] != NULL ) inv_cleanindex (cookies [i ]);
385
- }
386
+ for (i = 0 ; i < MAX_LOBJ_FDS ; i ++ )
387
+ {
388
+ if (cookies [i ] != NULL ) inv_cleanindex (cookies [i ]);
389
+ }
386
390
387
391
MemoryContextSwitchTo (currentContext );
388
392
You can’t perform that action at this time.
0 commit comments