[Tcladdressbook-commits] Source TclAddressBookUtils.c,1.10,1.11
Status: Alpha
Brought to you by:
bdesgraupes
|
From: <bde...@us...> - 2003-12-16 10:28:22
|
Update of /cvsroot/tcladdressbook/Source
In directory sc8-pr-cvs1:/tmp/cvs-serv27828/Source
Modified Files:
TclAddressBookUtils.c
Log Message:
Inverted "if"
Index: TclAddressBookUtils.c
===================================================================
RCS file: /cvsroot/tcladdressbook/Source/TclAddressBookUtils.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- TclAddressBookUtils.c 16 Dec 2003 07:37:12 -0000 1.10
+++ TclAddressBookUtils.c 16 Dec 2003 10:28:18 -0000 1.11
@@ -249,7 +249,7 @@
CFDictionaryGetKeysAndValues(theDict, theKeys, theVals);
// Loop over all the entries
for (k = 0; k < dictCount; k++) {
- if (!theKeys[k] && !theVals[k] ) {
+ if (theKeys[k] && theVals[k] ) {
// Make a two items list for each key/value pair
if (CFStringGetCString(theKeys[k], theStr, sizeof(theStr), theEncoding)
&& CFStringGetCString(theVals[k], theSubStr, sizeof(theSubStr), theEncoding)) {
|