Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350060
b: refs/heads/master
c: 5936f54
h: refs/heads/master
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed Feb 6, 2013
1 parent aa6da8a commit 62986f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 553099857702bb77e541c47bde47f6863834d2e2
refs/heads/master: 5936f54d6ca2857d81188dcdff8c61b8fc482f53
5 changes: 5 additions & 0 deletions trunk/tools/perf/util/sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,11 @@ int setup_sorting(void)
char *tmp, *tok, *str = strdup(sort_order);
int ret = 0;

if (str == NULL) {
error("Not enough memory to setup sort keys");
return -ENOMEM;
}

for (tok = strtok_r(str, ", ", &tmp);
tok; tok = strtok_r(NULL, ", ", &tmp)) {
ret = sort_dimension__add(tok);
Expand Down

0 comments on commit 62986f3

Please sign in to comment.