Permalink
Browse files

use a var for result so we can do 'one and only one return'

  • Loading branch information...
1 parent a2c0301 commit a5c6ebaec7418fcfd4689fc6555b2df399533c3d @jwlynch committed Feb 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 nspostgres.c
View
@@ -1022,6 +1022,7 @@ blob_dml_file(Tcl_Interp *interp, Ns_DbHandle *handle, char* blob_id,
char* filename)
{
NsPgConn *nspgConn = (NsPgConn *) handle->connection;
+ int result = TCL_OK;
int fd, i, j, segment, readlen;
char in_buf[6000], out_buf[8001], query[10000];
char *segment_pos;
@@ -1075,7 +1076,7 @@ blob_dml_file(Tcl_Interp *interp, Ns_DbHandle *handle, char* blob_id,
segment++;
}
close(fd);
- return TCL_OK;
+ return result;
}
/* ns_pg blob_select_file db blob_id filename

0 comments on commit a5c6eba

Please sign in to comment.