Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/dist/gdb Avoid empty loop.
details: https://anonhg.NetBSD.org/src/rev/416acc6fcc1e
branches: trunk
changeset: 343482:416acc6fcc1e
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Feb 06 18:23:26 2016 +0000
description:
Avoid empty loop.
diffstat:
external/gpl3/gdb/dist/gdb/dtrace-probe.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r a29a2e36f5d3 -r 416acc6fcc1e external/gpl3/gdb/dist/gdb/dtrace-probe.c
--- a/external/gpl3/gdb/dist/gdb/dtrace-probe.c Sat Feb 06 18:19:59 2016 +0000
+++ b/external/gpl3/gdb/dist/gdb/dtrace-probe.c Sat Feb 06 18:23:26 2016 +0000
@@ -421,7 +421,8 @@
arg.type_str = xstrdup (p);
/* Use strtab_size as a sentinel. */
- while (*p++ != '\0' && p - strtab < strtab_size);
+ while (*p != '\0' && p - strtab < strtab_size)
+ ++p;
/* Try to parse a type expression from the type string. If
this does not work then we set the type to `long
Home |
Main Index |
Thread Index |
Old Index