Skip to content
Browse files

compare signed with unsigned error found by Coverity

  • Loading branch information...
1 parent e8f3085 commit d145915d2b441e2e4fa4410a8ceeae16efbd255e @gelinasc gelinasc committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 storage/walrus.c
View
2 storage/walrus.c
@@ -352,7 +352,7 @@ static int walrus_request_timeout(const char *walrus_op, const char *verb, const
gmtime_r(&t, &tmp_t);
//Format for time
- if (strftime(date_str, 17, "%Y%m%dT%H%M%SZ", &tmp_t) < 0) {
+ if (strftime(date_str, 17, "%Y%m%dT%H%M%SZ", &tmp_t) == 0) {
close(fd);
pthread_mutex_unlock(&wreq_mutex);
return (EUCA_ERROR);

0 comments on commit d145915

Please sign in to comment.
Something went wrong with that request. Please try again.