Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite00896f

Browse files
committed
Remove useless variable.
1 parent3a6f131 commite00896f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

‎src/port/path.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/port/path.c,v 1.34 2004/08/29 21:08:48 tgl Exp $
11+
* $PostgreSQL: pgsql/src/port/path.c,v 1.35 2004/09/02 16:42:00 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -429,8 +429,6 @@ make_relative(const char *my_exec_path, const char *p, char *ret_path)
429429
staticconstchar*
430430
relative_path(constchar*bin_path,constchar*other_path)
431431
{
432-
constchar*other_sep=other_path;
433-
434432
#ifdefWIN32
435433
/* Driver letters match? */
436434
if (isalpha(*bin_path)&&bin_path[1]==':'&&
@@ -446,7 +444,6 @@ relative_path(const char *bin_path, const char *other_path)
446444
returnNULL;
447445
bin_path+=2;
448446
other_path+=2;
449-
other_sep=other_path+1;/* past separator */
450447
}
451448
#endif
452449

@@ -470,9 +467,6 @@ relative_path(const char *bin_path, const char *other_path)
470467
)
471468
break;
472469

473-
if (IS_DIR_SEP(*other_path))
474-
other_sep=other_path+1;/* past separator */
475-
476470
bin_path++;
477471
other_path++;
478472
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp