aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/port/snprintf.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/port/snprintf.c b/src/port/snprintf.c
index 415eb89948c..3ccac709e11 100644
--- a/src/port/snprintf.c
+++ b/src/port/snprintf.c
@@ -27,7 +27,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $PostgreSQL: pgsql/src/port/snprintf.c,v 1.34 2007/03/26 21:44:11 momjian Exp $
+ * $PostgreSQL: pgsql/src/port/snprintf.c,v 1.35 2008/03/18 01:49:44 tgl Exp $
*/
#include "c.h"
@@ -565,7 +565,10 @@ nextch2:
{
precision = starval;
if (precision < 0)
+ {
precision = 0;
+ pointflag = 0;
+ }
}
else
{
@@ -590,7 +593,10 @@ nextch2:
{
precision = starval;
if (precision < 0)
+ {
precision = 0;
+ pointflag = 0;
+ }
}
else
{