Commit c2c3a46e authored by Yang Tse's avatar Yang Tse
Browse files

Attempt to silence bogus compiler warning: "Potential null pointer dereference...

Attempt to silence bogus compiler warning: "Potential null pointer dereference through ptr is detected"
parent 3eee678a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -108,7 +108,7 @@ void ourWriteOut(CURL *curl, const char *writeinfo)
  long longinfo;
  long longinfo;
  double doubleinfo;
  double doubleinfo;


  while(*ptr) {
  while(ptr && *ptr) {
    if('%' == *ptr) {
    if('%' == *ptr) {
      if('%' == ptr[1]) {
      if('%' == ptr[1]) {
        /* an escaped %-letter */
        /* an escaped %-letter */