Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349991
b: refs/heads/master
c: 8e16017
h: refs/heads/master
i:
  349989: 9353965
  349987: f17d6a3
  349983: d027d1e
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Jan 25, 2013
1 parent 5e88e11 commit 687b85c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 237a7e04a1a4461843a998fae78517dbbd08602e
refs/heads/master: 8e16017d497e9bb37c8c3c5ed1edb8d6adeebf3a
8 changes: 2 additions & 6 deletions trunk/tools/perf/util/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include "strlist.h"
#include "vdso.h"
#include "build-id.h"
#include <linux/string.h>

const char *map_type__name[MAP__NR_TYPES] = {
[MAP__FUNCTION] = "Functions",
Expand Down Expand Up @@ -213,12 +214,7 @@ struct symbol *map__find_symbol_by_name(struct map *map, const char *name,

struct map *map__clone(struct map *map)
{
struct map *clone = malloc(sizeof(*clone));

if (clone != NULL)
memcpy(clone, map, sizeof(*clone));

return clone;
return memdup(map, sizeof(*map));
}

int map__overlap(struct map *l, struct map *r)
Expand Down

0 comments on commit 687b85c

Please sign in to comment.