diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2011-12-17 01:36:50 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2011-12-17 01:36:50 +0000 |
| commit | 940695fffb6bda4788a6672e02bbb79c1d9789ed (patch) | |
| tree | cd517513324f1fb9b12c338d2dc749d24b0390fc /usr.bin/tar | |
| parent | 782474128646c4abf17ee2761b99403f3b42d9c4 (diff) | |
Notes
Diffstat (limited to 'usr.bin/tar')
| -rw-r--r-- | usr.bin/tar/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tar/tree.c b/usr.bin/tar/tree.c index 58e9febd3d8eb..27cbd7175c5bd 100644 --- a/usr.bin/tar/tree.c +++ b/usr.bin/tar/tree.c @@ -315,7 +315,7 @@ tree_next(struct tree *t) const char *msg = "Unable to continue traversing" " directory hierarchy after a fatal error."; write(2, msg, strlen(msg)); - *(int *)0 = 1; /* Deliberate SEGV; NULL pointer dereference. */ + *(volatile int *)0 = 1; /* Deliberate SEGV; NULL pointer dereference. */ exit(1); /* In case the SEGV didn't work. */ } |
