소스 검색

Fixed crash.

default 1 년 전
부모
커밋
a0fc1b38eb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      html.c

+ 1 - 1
html.c

@@ -1944,7 +1944,7 @@ xs_html *html_entry(snac *user, xs_dict *msg, int read_only,
             const char *name = xs_dict_get(a, "name");
 
             /* if this image is already in the post content, skip */
-            if (xs_str_in(content, href) != -1)
+            if (content && xs_str_in(content, href) != -1)
                 continue;
 
             if (xs_startswith(type, "image/") || strcmp(type, "Image") == 0) {