diff options
Diffstat (limited to 'src/modules/language/detector.cpp')
| -rw-r--r-- | src/modules/language/detector.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/language/detector.cpp b/src/modules/language/detector.cpp index 2a641f0d5..99bf92d46 100644 --- a/src/modules/language/detector.cpp +++ b/src/modules/language/detector.cpp @@ -48,7 +48,7 @@ typedef struct _DetectorDescriptor DetectorNGram * ngram_hash[256]; } DetectorDescriptor; -static DetectorNGram X[] = { { 0, 0 } }; +static DetectorNGram X[] = { { nullptr, 0 } }; /////////////////////////////////////////////////////////////////////////////// // DEFINES THAT SAVE (A LOT OF) SPACE @@ -18747,10 +18747,10 @@ void detect_language_and_encoding(const char * data, LanguageAndEncodingResult * DetectorDescriptor * match[DLE_NUM_BEST_MATCHES]; for(i = 0; i < DLE_NUM_BEST_MATCHES; i++) { - retBuffer->match[i].szLanguage = 0; - retBuffer->match[i].szEncoding = 0; + retBuffer->match[i].szLanguage = nullptr; + retBuffer->match[i].szEncoding = nullptr; retBuffer->match[i].dScore = -99999999999.9; - match[i] = 0; + match[i] = nullptr; } retBuffer->dAccuracy = 0.0; |
