Skip to content

Commit d4337f6

Browse files
committed
Read getopt() into an int, not char.
1 parent 10d4faa commit d4337f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/oid2name/oid2name.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void sql_exec_searchoid(PGconn *, int);
5252
void
5353
get_opts(int argc, char **argv, struct options * my_opts)
5454
{
55-
char c;
55+
int c;
5656

5757
/* set the defaults */
5858
my_opts->getdatabase = 0;

0 commit comments

Comments
 (0)