File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ void check_pghost_envvar(void);
443443/* util.c */
444444
445445char * quote_identifier (const char * s );
446- int get_user_info (char * * user_name );
446+ int get_user_info (char * * user_name_p );
447447void check_ok (void );
448448void
449449report_status (eLogType type , const char * fmt ,...)
Original file line number Diff line number Diff line change @@ -205,9 +205,10 @@ quote_identifier(const char *s)
205205 * get_user_info()
206206 */
207207int
208- get_user_info (char * * user_name )
208+ get_user_info (char * * user_name_p )
209209{
210210 int user_id ;
211+ const char * user_name ;
211212 char * errstr ;
212213
213214#ifndef WIN32
@@ -216,12 +217,12 @@ get_user_info(char **user_name)
216217 user_id = 1 ;
217218#endif
218219
219- * user_name = get_user_name (& errstr );
220- if (!* user_name )
220+ user_name = get_user_name (& errstr );
221+ if (!user_name )
221222 pg_fatal ("%s\n" , errstr );
222223
223224 /* make a copy */
224- * user_name = pg_strdup (* user_name );
225+ * user_name_p = pg_strdup (user_name );
225226
226227 return user_id ;
227228}
You can’t perform that action at this time.
0 commit comments