Fixed the crash for syncing
authorSunghyun Kwon <sh0701.kwon@samsung.com>
Thu, 21 Mar 2013 07:50:44 +0000 (16:50 +0900)
committerSunghyun Kwon <sh0701.kwon@samsung.com>
Thu, 21 Mar 2013 07:50:44 +0000 (16:50 +0900)
Change-Id: Ib41f0f5e1bc829412884ddf7be69d222a4ed382d

email-core/email-core-mailbox-sync.c

index 12f362c..f7c75e3 100755 (executable)
@@ -3217,7 +3217,7 @@ static int emcore_parse_image_part_for_partial_body(char *header_start_string, c
 
        EM_DEBUG_LOG("Content-type: image");
 
-       while (*image_boundary != LF)
+       while (image_boundary && *image_boundary != LF)
                image_boundary--;
 
        image_boundary++;