diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2011-11-16 18:29:34 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2011-11-16 18:29:34 +0000 |
commit | caf4328c57b4f7a01b457dcd3137aba195f2c445 (patch) | |
tree | a7a6cc04acf18a7bf820313e54e6cfa7be62fe78 /gdb/skip.c | |
parent | 73cd8ab13213d2c01643a168b0a1632d35335f4a (diff) | |
download | gdb-caf4328c57b4f7a01b457dcd3137aba195f2c445.zip gdb-caf4328c57b4f7a01b457dcd3137aba195f2c445.tar.gz gdb-caf4328c57b4f7a01b457dcd3137aba195f2c445.tar.bz2 |
* skip.c (skip_function_command): Work around uninitialized
variable warning.
Diffstat (limited to 'gdb/skip.c')
-rw-r--r-- | gdb/skip.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -160,7 +160,7 @@ skip_function_command (char *arg, int from_tty) int pending = 0; char *orig_arg = arg; /* decode_line_1 modifies the arg pointer. */ volatile struct gdb_exception decode_exception; - struct symtabs_and_lines sals; + struct symtabs_and_lines sals = { 0 }; TRY_CATCH (decode_exception, RETURN_MASK_ERROR) { @@ -509,7 +509,7 @@ skip_re_set (void) else if (e->function_name != 0) { char *func_name = e->function_name; - struct symtabs_and_lines sals; + struct symtabs_and_lines sals = { 0 }; volatile struct gdb_exception decode_exception; TRY_CATCH (decode_exception, RETURN_MASK_ERROR) |