mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 01:37:31 +03:00 
			
		
		
		
	Cleanup of gcc fake positives in lobject
This commit is contained in:
		
							parent
							
								
									2aedbedcbf
								
							
						
					
					
						commit
						de1b816f83
					
				| 
						 | 
					@ -236,7 +236,7 @@ lobject_open(lobjectObject *self, connectionObject *conn,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* lobject_close - close an existing lo */
 | 
					/* lobject_close - close an existing lo */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RAISES_NEG static int
 | 
					static int
 | 
				
			||||||
lobject_close_locked(lobjectObject *self, char **error)
 | 
					lobject_close_locked(lobjectObject *self, char **error)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    int retvalue;
 | 
					    int retvalue;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -96,6 +96,7 @@ psyco_lobj_write(lobjectObject *self, PyObject *args)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (-1 == Bytes_AsStringAndSize(data, &buffer, &len)) {
 | 
					    if (-1 == Bytes_AsStringAndSize(data, &buffer, &len)) {
 | 
				
			||||||
 | 
					        FAKE_RAISE();   /* issue davidmalcolm/gcc-python-plugin#75 */
 | 
				
			||||||
        goto exit;
 | 
					        goto exit;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -357,7 +358,7 @@ lobject_setup(lobjectObject *self, connectionObject *conn,
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Py_INCREF((PyObject*)conn);
 | 
					    Py_INCREF((PyObject*)conn);
 | 
				
			||||||
    self->conn = conn;
 | 
					    self->conn = (connectionObject *)TO_STATE((PyObject *)conn);
 | 
				
			||||||
    self->mark = conn->mark;
 | 
					    self->mark = conn->mark;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    self->fd = -1;
 | 
					    self->fd = -1;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user