aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support/string_posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/support/string_posix.c')
-rw-r--r--src/core/support/string_posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/support/string_posix.c b/src/core/support/string_posix.c
index 8a678b3103..25c333db4e 100644
--- a/src/core/support/string_posix.c
+++ b/src/core/support/string_posix.c
@@ -51,7 +51,7 @@ int gpr_asprintf(char **strp, const char *format, ...) {
va_start(args, format);
ret = vsnprintf(buf, sizeof(buf), format, args);
va_end(args);
- if (!(0 <= ret)) {
+ if (ret < 0) {
*strp = NULL;
return -1;
}