aboutsummaryrefslogtreecommitdiff
path: root/gas/cond.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-04-28 11:22:57 +0100
committerNick Clifton <nickc@redhat.com>2015-04-28 11:22:57 +0100
commitda7119c99c41f60cb178b0b9729d9f7880f33c86 (patch)
tree6cf1b9b9764d7474ad13b3de12316fa5c557aaff /gas/cond.c
parent2631b16a570626a276f1ce6528ff1cd2cc90ce76 (diff)
downloadgdb-da7119c99c41f60cb178b0b9729d9f7880f33c86.zip
gdb-da7119c99c41f60cb178b0b9729d9f7880f33c86.tar.gz
gdb-da7119c99c41f60cb178b0b9729d9f7880f33c86.tar.bz2
Fix compile time warnings about a local variable being used before it is set.
PR 18313 * cond.c (s_if): Stop compile time warning about stopc being used before it is set. (s_ifc): Likewise.
Diffstat (limited to 'gas/cond.c')
-rw-r--r--gas/cond.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/cond.c b/gas/cond.c
index fa5f092..2649976 100644
--- a/gas/cond.c
+++ b/gas/cond.c
@@ -128,7 +128,7 @@ s_if (int arg)
struct conditional_frame cframe;
int t;
char *stop = NULL;
- char stopc;
+ char stopc = 0;
if (flag_mri)
stop = mri_comment_field (&stopc);
@@ -261,7 +261,7 @@ void
s_ifc (int arg)
{
char *stop = NULL;
- char stopc;
+ char stopc = 0;
char *s1, *s2;
int len1, len2;
int res;