ext/mkdio.c in rdiscount-1.6.3.2 vs ext/mkdio.c in rdiscount-1.6.5

- old
+ new

@@ -22,11 +22,13 @@ new_Document() { Document *ret = calloc(sizeof(Document), 1); if ( ret ) { - if (( ret->ctx = calloc(sizeof(MMIOT), 1) )) + if (( ret->ctx = calloc(sizeof(MMIOT), 1) )) { + ret->magic = VALID_DOCUMENT; return ret; + } free(ret); } return 0; }