Set ctx->cx_data_sz to 0 if ctx->cx_data is NULL

This is defensive programming. A nonzero buffer size should not be
associated with a null buffer pointer.

Change-Id: I2194594c7bc2f623c951293242337f25f263aeff
diff --git a/av1/av1_cx_iface.c b/av1/av1_cx_iface.c
index 9b82913..f6b6c72 100644
--- a/av1/av1_cx_iface.c
+++ b/av1/av1_cx_iface.c
@@ -2176,6 +2176,7 @@
         free(ctx->cx_data);
         ctx->cx_data = (unsigned char *)malloc(ctx->cx_data_sz);
         if (ctx->cx_data == NULL) {
+          ctx->cx_data_sz = 0;
           return AOM_CODEC_MEM_ERROR;
         }
       }