git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5c431eb)
This patch fixes the undefined (according to C) and erroneous (under
1998年12月13日 02:50:20 +0000 (02:50 +0000)
1998年12月13日 02:50:20 +0000 (02:50 +0000)
Digital Uni x with both DEC cc and gcc) behaviour of modifying an
lvalue on the left side an d then using it on the right side of an
assignment. Since this code modifies the
dbname parameter, it was changing, for example, "dbname=template1"
into "dbname =emplate1".

David Smith Programmer P


diff --git a/src/interfaces/perl5/Pg.xs b/src/interfaces/perl5/Pg.xs
index 5d8777dae8c2d976daf80248b1495fa8ed7b634b..31df6a250ab36d0e0f4f235695620160ec505f47 100644 (file)
--- a/src/interfaces/perl5/Pg.xs
+++ b/src/interfaces/perl5/Pg.xs
@@ -1,6 +1,6 @@
/*-------------------------------------------------------
*
- * $Id: Pg.xs,v 1.9 1998年09月27日 19:12:23 mergl Exp $
+ * $Id: Pg.xs,v 1.10 1998年12月13日 02:50:20 momjian Exp $
*
* Copyright (c) 1997, 1998 Edmund Mergl
*
@@ -215,7 +215,8 @@ PQconnectdb(conninfo)
}
} else {
while (*ptr && *ptr != ' ' && *ptr != '\t') {
- *ptr++ = tolower(*ptr);
+ *ptr = tolower(*ptr);
+ ptr++;
}
}
}
@@ -732,7 +733,8 @@ connectdb(conninfo)
}
} else {
while (*ptr && *ptr != ' ' && *ptr != '\t') {
- *ptr++ = tolower(*ptr);
+ *ptr = tolower(*ptr);
+ ptr++;
}
}
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /