summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/serialized_var.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/proxy/serialized_var.cc')
-rw-r--r--ppapi/proxy/serialized_var.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ppapi/proxy/serialized_var.cc b/ppapi/proxy/serialized_var.cc
index e68c681..71c0eed 100644
--- a/ppapi/proxy/serialized_var.cc
+++ b/ppapi/proxy/serialized_var.cc
@@ -403,7 +403,7 @@ PP_Var* SerializedVarVectorReceiveInput::Get(Dispatcher* dispatcher,
}
*array_size = static_cast<uint32_t>(serialized_.size());
- return deserialized_.size() > 0 ? &deserialized_[0] : NULL;
+ return deserialized_.empty() ? NULL : &deserialized_[0];
}
// SerializedVarReturnValue ----------------------------------------------------