blob: 8d1f9421aed88214d966752e17d7c5016e11d7c5 [file] [log] [blame]
diff --git a/source/common/uloc.cpp b/source/common/uloc.cpp
index 88a221c..ae5cdde 100644
--- a/source/common/uloc.cpp
+++ b/source/common/uloc.cpp
@@ -694,7 +694,7 @@ _getKeywords(const char *localeID,
}
/* Premature end or zero-length value */
- if (!equalSign || equalSign == semicolon) {
+ if (!*equalSign || equalSign == semicolon) {
*status = U_INVALID_FORMAT_ERROR;
return 0;
}