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/311f4c9e6828
branches: trunk
changeset: 813624:311f4c9e6828
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 9c31590f3998 -r 311f4c9e6828 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