ruby-changes:50272
From: kazu <ko1@a...>
Date: Tue, 13 Feb 2018 09:03:25 +0900 (JST)
Subject: [ruby-changes:50272] kazu:r62390 (trunk): xmalloc never returns NULL
kazu 2018-02-13 09:03:18 +0900 (Tue, 13 Feb 2018) New Revision: 62390 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62390 Log: xmalloc never returns NULL Modified files: trunk/mjit.c Index: mjit.c =================================================================== --- mjit.c (revision 62389) +++ mjit.c (revision 62390) @@ -298,8 +298,7 @@ form_args(int num, ...) https://github.com/ruby/ruby/blob/trunk/mjit.c#L298 len += args_len(args); } va_end(argp); - if ((res = xmalloc((len + 1) * sizeof(char *))) == NULL) - return NULL; + res = xmalloc((len + 1) * sizeof(char *)); for (i = disp = 0; i < num; i++) { args = va_arg(argp2, char **); len = args_len(args); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/