Browse Source

Empty string fail fixed in mime.c

mime-integrate
parent
commit
26c8e2d87a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/mime.c

+ 2
- 1
src/mime.c View File

@ -6,6 +6,7 @@
#define _EXPORT_PEP_ENGINE_DLL
#include "mime.h"
#include "pEp_internal.h"
#include <string.h>
#include <stdlib.h>
@ -38,7 +39,7 @@ static bool is_whitespace(char c)
DYNAMIC_API bool is_PGP_message_text(const char *text)
{
if (text == NULL)
if (EMPTYSTR(text))
return false;
for (; *text && is_whitespace(*text); text++);


Loading…
Cancel
Save