projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3eee678
)
Attempt to silence bogus compiler warning: "Potential null pointer dereference throug...
author
Yang Tse
<yangsita@gmail.com>
Wed, 16 Sep 2009 16:49:02 +0000
(16:49 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Wed, 16 Sep 2009 16:49:02 +0000
(16:49 +0000)
src/writeout.c
patch
|
blob
|
history
diff --git
a/src/writeout.c
b/src/writeout.c
index
14ba41b
..
9aab771
100644
(file)
--- a/
src/writeout.c
+++ b/
src/writeout.c
@@
-108,7
+108,7
@@
void ourWriteOut(CURL *curl, const char *writeinfo)
long longinfo;
double doubleinfo;
- while(*ptr) {
+ while(
ptr &&
*ptr) {
if('%' == *ptr) {
if('%' == ptr[1]) {
/* an escaped %-letter */