Code cleanup.
	* source.c (add_path): Remove always true conditional 'p == 0' and
	unindent its code block.
This commit is contained in:
Jan Kratochvil 2012-04-17 15:45:12 +00:00
parent 0b649256e3
commit 5ee4ed9f2e
2 changed files with 31 additions and 28 deletions

View File

@ -1,3 +1,9 @@
2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
* source.c (add_path): Remove always true conditional 'p == 0' and
unindent its code block.
2012-04-17 Pedro Alves <palves@redhat.com>
* gdbtypes.h (FIELD_BITPOS): Rename to ...

View File

@ -573,6 +573,7 @@ add_path (char *dirname, char **which_path, int parse_separators)
append:
{
unsigned int len = strlen (name);
char tinybuf[2];
p = *which_path;
while (1)
@ -596,9 +597,6 @@ add_path (char *dirname, char **which_path, int parse_separators)
else
break;
}
if (p == 0)
{
char tinybuf[2];
tinybuf[0] = DIRNAME_SEPARATOR;
tinybuf[1] = '\0';
@ -627,7 +625,6 @@ add_path (char *dirname, char **which_path, int parse_separators)
xfree (old);
old = *which_path;
}
}
skip_dup:
;
}