Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e00896f

Browse files
committed
Remove useless variable.
1 parent 3a6f131 commit e00896f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/port/path.c

+1-7
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
static const char *
430430
relative_path(const char *bin_path, const char *other_path)
431431
{
432-
const char *other_sep = other_path;
433-
434432
#ifdef WIN32
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
return NULL;
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)