perf symbols: Fix type error when reading a build-id
authorDima Kogan <dima@secretsauce.net>
Tue, 8 Sep 2015 00:30:28 +0000 (17:30 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 28 Oct 2015 13:02:00 +0000 (10:02 -0300)
This was benign, but wrong. The build-id should live in a char[], not a char*[]

Signed-off-by: Dima Kogan <dima@secretsauce.net>
Link: http://lkml.kernel.org/r/87si6pfwz4.fsf@secretsauce.net
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/symbol-minimal.c

index fd8477c..4890633 100644 (file)
@@ -337,7 +337,7 @@ int dso__load_sym(struct dso *dso, struct map *map __maybe_unused,
                  symbol_filter_t filter __maybe_unused,
                  int kmodule __maybe_unused)
 {
-       unsigned char *build_id[BUILD_ID_SIZE];
+       unsigned char build_id[BUILD_ID_SIZE];
        int ret;
 
        ret = fd__is_64_bit(ss->fd);