Index: ppapi/proxy/serialized_var.cc |
diff --git a/ppapi/proxy/serialized_var.cc b/ppapi/proxy/serialized_var.cc |
index e68c6813d4c2bddf53408263389a1d404a5b11a3..71c0eed75c6cd8908b87f63a0722a1737a70eae2 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 ---------------------------------------------------- |