Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Feb 2015 23:59:13 +0200
From:      Dmitry Luhtionov <dmitryluhtionov@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   [patch] sys/boot/fdt/fdt_loader_cmd.c
Message-ID:  <CAAYMRQfBKPbboEyHLa5Qc1LhQprD4JxcrTC0WnWYgTriSGws0g@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
--- sys/boot/fdt/fdt_loader_cmd.c.orig 2015-02-04 10:06:18.000000000 +0200
+++ sys/boot/fdt/fdt_loader_cmd.c 2015-02-20 23:50:26.000000000 +0200
@@ -1299,13 +1299,12 @@ fdt_merge_strings(int argc, char *argv[]
  sz += argc - start;

  buf = (char *)malloc(sizeof(char) * sz);
- bzero(buf, sizeof(char) * sz);
-
  if (buf == NULL) {
  sprintf(command_errbuf, "could not allocate space "
     "for string");
  return (1);
  }
+ bzero(buf, sizeof(char) * sz);

  idx = 0;
  for (i = start, idx = 0; i < argc; i++) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAYMRQfBKPbboEyHLa5Qc1LhQprD4JxcrTC0WnWYgTriSGws0g>