From: Billy G. A. <bal...@us...> - 2001-09-16 17:53:31
|
Update of /cvsroot/pypgsql/pypgsql In directory usw-pr-cvs1:/tmp/cvs-serv2751 Modified Files: pgversion.c Log Message: 15SEP2001 bga Fixed problem where a variable in PgVersion_New() could be used before it was initialized. Index: pgversion.c =================================================================== RCS file: /cvsroot/pypgsql/pypgsql/pgversion.c,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pgversion.c 2001/09/14 04:01:37 1.8 --- pgversion.c 2001/09/16 17:53:27 1.9 *************** *** 32,35 **** --- 32,37 ---- | Date Ini Description | | --------- --- ------------------------------------------------------- | + | 15SEP2001 bga Fixed problem where a variable in PgVersion_New() could | + | be used before it was initialized. | | 12SEP2001 bga Improved detection of erronious input strings. | | --- Various minor bug fixes and code cleanup. | *************** *** 151,158 **** { PgVersion *self; ! char *s; /* writeable temporary copy of version string */ ! char *vstr; /* The version number from the version string */ ! char *token; /* parsed token */ ! char *save_ptr; /* saves strtok_r state for subsequent calls */ long major, minor, patch, value; --- 153,160 ---- { PgVersion *self; ! char *s = (char *)NULL; /* writeable temporary copy of version string */ ! char *vstr; /* The version number from the version string */ ! char *token; /* parsed token */ ! char *save_ptr; /* saves strtok_r state for subsequent calls */ long major, minor, patch, value; |