summaryrefslogtreecommitdiff
path: root/options.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'options.cpp')
-rw-r--r--options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/options.cpp b/options.cpp
index 7061f39..9836d67 100644
--- a/options.cpp
+++ b/options.cpp
@@ -637,7 +637,7 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP
}
}
char *tmp = UniGetContactSettingUtf(hcnt, szGPGModuleName, "KeyID_Prescense", "");
- if(strlen(tmp) > 0)
+ if(tmp[0])
{
char *tmp2 = UniGetContactSettingUtf(hcnt, szGPGModuleName, "KeyID", "");
if(strlen(tmp2) == 0)