commit - af4b424466c219a0f4055cde9397c63429f7ca9a
commit + 6478979fd94200850480e7617ee8145fa4604749
blob - c2ff26743452e2940ddd5e6fc83094b3f5d169de
blob + 817b64e4dc653ae767c4651a33ad9578c95b11c0
--- diff_main.c
+++ diff_main.c
struct diff_result *result;
struct diff_state state;
- result = malloc(sizeof(struct diff_result));
+ result = calloc(1, sizeof(struct diff_result));
if (result == NULL)
return NULL;
- *result = (struct diff_result){};
diff_data_init_root(&result->left, left_data, left_len);
diff_data_init_root(&result->right, right_data, right_len);