Skip to content

Commit dda3fc1

Browse files
author
Ivan Zhakov
committed
* threadproc/win32/proc.c
(quote_arg): Use '\0' instead of 0 for character constant. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1929719 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1e9eca4 commit dda3fc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

threadproc/win32/proc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ static const char * quote_arg(const char *str, apr_pool_t *pool)
355355
ch++;
356356
}
357357

358-
if (*ch == 0) {
358+
if (*ch == '\0') {
359359
/* Escape backslashes. */
360360
needed += backslash_count * 2;
361361
break;
@@ -391,7 +391,7 @@ static const char * quote_arg(const char *str, apr_pool_t *pool)
391391
ch++;
392392
}
393393

394-
if (*ch == 0) {
394+
if (*ch == '\0') {
395395
memset(dst, '\\', backslash_count * 2);
396396
dst += backslash_count * 2;
397397
break;
@@ -408,7 +408,7 @@ static const char * quote_arg(const char *str, apr_pool_t *pool)
408408
}
409409
}
410410
*dst++ = '"';
411-
*dst = 0;
411+
*dst = '\0';
412412

413413
return escaped;
414414
}

0 commit comments

Comments
 (0)