projects
/
external
/
corewatcher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0340095
)
stagger string testing here, avoids running some extra code during poll.
author
Auke Kok
<auke-jan.h.kok@intel.com>
Wed, 28 Jul 2010 23:54:37 +0000
(16:54 -0700)
committer
Auke Kok
<auke-jan.h.kok@intel.com>
Wed, 28 Jul 2010 23:54:37 +0000
(16:54 -0700)
coredump.c
patch
|
blob
|
history
diff --git
a/coredump.c
b/coredump.c
index
f2c7234
..
9e1782e
100644
(file)
--- a/
coredump.c
+++ b/
coredump.c
@@
-44,10
+44,14
@@
int do_unlink = 0;
char *extract_core(char *corefile)
{
char *command = NULL, *c1 = NULL, *c2 = NULL, *line, *c3;
+ char *coredump;
char *appfile;
FILE *file;
- appfile = find_executable(find_coredump(corefile));
+ coredump = find_coredump(corefile);
+ if (!coredump)
+ return NULL;
+ appfile = find_executable(coredump);
if (!appfile)
return NULL;