From 5a6d0f17bbf6b09463b908182dc2cbb112a0c6cb Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 15 Mar 2010 00:15:23 +0000 Subject: Following a manual code review, fix some local variables overriding global variables, a few leaks, and additional nil setting/checking to prevent overreleases or releases of random areas of memory. --- Source/CMCopyTable.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/CMCopyTable.m') diff --git a/Source/CMCopyTable.m b/Source/CMCopyTable.m index cc917dba..dc9cc770 100644 --- a/Source/CMCopyTable.m +++ b/Source/CMCopyTable.m @@ -85,7 +85,7 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2002; } if ( [anItem tag] == MENU_EDIT_COPY_AS_SQL ) { - return (columnDefinitions != NULL && [self selectedRow] > -1); + return (columnDefinitions != nil && [self selectedRow] > -1); } return YES; } -- cgit v1.2.3