diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-14 15:56:21 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-14 15:56:21 +0200 |
commit | 98c21e88d96f3e45c5f47ac8a1b9ef7a4b523566 (patch) | |
tree | f5394ff161016a31b7828d33e79696422b49f245 /src/hooks/abrt-hook-ccpp.cpp | |
parent | c0ce7860a4bdcefd8a43197d05dca9fd12bb52b1 (diff) | |
download | abrt-98c21e88d96f3e45c5f47ac8a1b9ef7a4b523566.tar.gz abrt-98c21e88d96f3e45c5f47ac8a1b9ef7a4b523566.tar.xz abrt-98c21e88d96f3e45c5f47ac8a1b9ef7a4b523566.zip |
fix my embarrassing error (check for equality is strncmp == 0!)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'src/hooks/abrt-hook-ccpp.cpp')
-rw-r--r-- | src/hooks/abrt-hook-ccpp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hooks/abrt-hook-ccpp.cpp b/src/hooks/abrt-hook-ccpp.cpp index 15116640..279ac5db 100644 --- a/src/hooks/abrt-hook-ccpp.cpp +++ b/src/hooks/abrt-hook-ccpp.cpp @@ -389,7 +389,7 @@ int main(int argc, char** argv) } const char *last_slash = strrchr(executable, '/'); - if (last_slash && strncmp(++last_slash, "abrt", 4)) + if (last_slash && strncmp(++last_slash, "abrt", 4) == 0) { /* If abrtd/abrt-foo crashes, we don't want to create a _directory_, * since that can make new copy of abrtd to process it, |