summaryrefslogtreecommitdiff
path: root/gdb/somsolib.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-09 18:30:32 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-09 18:30:32 +0000
commitcf0396f62d4a996a788bf15632d59f46476da6b5 (patch)
tree13d17da3bdffb70ad993bc6cfef63cb37d879a0a /gdb/somsolib.c
parentc27bdee1cd22bf097ccf987f2b13d6e70c2759b8 (diff)
downloadgdb-cf0396f62d4a996a788bf15632d59f46476da6b5.tar.gz
2003-01-09 Andrew Cagney <ac131313@redhat.com>
* somsolib.h: Fix function indentation. * disasm.c, buildsym.c, buildsym.h: Eliminate PTR. * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ. * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ. * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ. * somsolib.c, inftarg.c: Remove assignment in if conditional.
Diffstat (limited to 'gdb/somsolib.c')
-rw-r--r--gdb/somsolib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/somsolib.c b/gdb/somsolib.c
index 6cc9f451657..3f74dce0a0c 100644
--- a/gdb/somsolib.c
+++ b/gdb/somsolib.c
@@ -418,7 +418,8 @@ som_solib_add (char *arg_string, int from_tty, struct target_ops *target, int re
int threshold_warning_given = 0;
/* First validate our arguments. */
- if ((re_err = re_comp (arg_string ? arg_string : ".")) != NULL)
+ re_err = re_comp (arg_string ? arg_string : ".");
+ if (re_err != NULL)
{
error ("Invalid regexp: %s", re_err);
}