Remove call to backend function get_share_path()
authorSteve Singer <ssinger@ca.afilias.info>
Fri, 8 Jul 2011 14:47:50 +0000 (10:47 -0400)
committerSteve Singer <ssinger@ca.afilias.info>
Fri, 8 Jul 2011 14:52:32 +0000 (10:52 -0400)
This is a backend function slonik should not be calling.
PGSHARE is defined by configure we count on it being set.
(cherry picked from commit 16304e08870b07e12cad19ee430e39afafc74a67)

src/slonik/slonik.c

index 67146003f221371cb94272bc843e88159804597f..e26e211f4bd7ac6bb2d0522fca61756bf2654d76 100644 (file)
@@ -154,14 +154,7 @@ main(int argc, const char *argv[])
        /*
         * We need to find a share directory like PostgreSQL. 
         */
-       if (strlen(PGSHARE) > 0)
-       {
-               strcpy(share_path, PGSHARE);
-       }
-       else
-       {
-               get_share_path(myfull_path, share_path);
-       }
+       strcpy(share_path, PGSHARE);
 
        if (optind < argc)
        {