From 98c21e88d96f3e45c5f47ac8a1b9ef7a4b523566 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 14 Oct 2010 15:56:21 +0200 Subject: fix my embarrassing error (check for equality is strncmp == 0!) Signed-off-by: Denys Vlasenko --- src/hooks/abrt-hook-ccpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hooks/abrt-hook-ccpp.cpp') 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, -- cgit