We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent10db3de commite3df357Copy full SHA for e3df357
contrib/pg_upgrade/option.c
@@ -288,21 +288,19 @@ or\n"), old_cluster.port, new_cluster.port, os_info.user);
288
* user hasn't provided the required directory name.
289
*/
290
staticvoid
291
-validateDirectoryOption(char**dirpath,
292
-char*envVarName,char*cmdLineOption,char*description)
+validateDirectoryOption(char**dirpath,char*envVarName,
+char*cmdLineOption,char*description)
293
{
294
-if (*dirpath==NULL||(strlen(*dirpath)==0))
+if (*dirpath==NULL||strlen(*dirpath)==0)
295
296
constchar*envVar;
297
298
if ((envVar=getenv(envVarName))&&strlen(envVar))
299
*dirpath=pg_strdup(envVar);
300
else
301
-{
302
pg_log(PG_FATAL,"You must identify the directory where the %s\n"
303
"Please use the %s command-line option or the %s environment variable\n",
304
description,cmdLineOption,envVarName);
305
-}
306
}
307
308
/*