use xzalloc in ada-lang.c:replace_operator_with_call
[deliverable/binutils-gdb.git] / gdb / ada-lang.c
index ed51ab05607358b38f1cb966055c4e09a38bbc55..392ffea72125d7feab1c2aebb5cf6af7ba910d03 100644 (file)
@@ -3655,7 +3655,7 @@ replace_operator_with_call (struct expression **expp, int pc, int nargs,
   /* A new expression, with 6 more elements (3 for funcall, 4 for function
      symbol, -oplen for operator being replaced).  */
   struct expression *newexp = (struct expression *)
-    xmalloc (sizeof (struct expression)
+    xzalloc (sizeof (struct expression)
              + EXP_ELEM_TO_BYTES ((*expp)->nelts + 7 - oplen));
   struct expression *exp = *expp;
 
This page took 0.028747 seconds and 4 git commands to generate.