Permalink
Browse files

If PGSHARE is provided as part of the environment, then we should use it

  • Loading branch information...
1 parent daa9922 commit 6db7b1a3eafd7ae4565f1bb9f5aeff9c8e341be7 Christopher Browne committed Apr 30, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/slonik/slonik.c
View
@@ -6,7 +6,7 @@
* Copyright (c) 2003-2004, PostgreSQL Global Development Group
* Author: Jan Wieck, Afilias USA INC.
*
- * $Id: slonik.c,v 1.91 2008-05-28 18:23:13 cbbrowne Exp $
+ * $Id: slonik.c,v 1.91.2.1 2009-04-30 15:46:15 cbbrowne Exp $
*-------------------------------------------------------------------------
*/
@@ -107,7 +107,7 @@ main(int argc, const char *argv[])
/*
* We need to find a share directory like PostgreSQL.
*/
- if (find_my_exec(argv[0],myfull_path) < 0)
+ if (strlen(PGSHARE) > 0)
{
strcpy(share_path, PGSHARE);
}

0 comments on commit 6db7b1a

Please sign in to comment.