mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
don't pass uninitialized variables to logf
This commit is contained in:
parent
b1ef09625e
commit
6027c94a43
1 changed files with 9 additions and 2 deletions
|
@ -674,8 +674,15 @@ DBMgr::TokenFor( const char* const connName, int hid, DevIDRelay* devid,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PQclear( result );
|
PQclear( result );
|
||||||
logf( XW_LOGINFO, "%s(%s,%d)=>%s (%d, %d)", __func__, connName, hid,
|
|
||||||
(found?"true":"false"), *devid, *token );
|
|
||||||
|
if ( found ) {
|
||||||
|
logf( XW_LOGINFO, "%s(%s,%d)=>true (%d, %d)", __func__, connName, hid,
|
||||||
|
*devid, *token );
|
||||||
|
} else {
|
||||||
|
logf( XW_LOGINFO, "%s(%s,%d)=>false", __func__, connName, hid );
|
||||||
|
}
|
||||||
|
|
||||||
return found;
|
return found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue