Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: base/base_paths_linux.cc

Issue 8361011: Tweak PathProviderPosix's FILE_EXE and FILE_MODULE handling on FreeBSD. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/default_plugin/plugin_impl_aura.cc » ('j') | chrome/default_plugin/plugin_impl_gtk.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/base_paths_linux.cc
diff --git a/base/base_paths_linux.cc b/base/base_paths_linux.cc
index b082eb3b3d71e6811ed385541df2df7268d1bb0e..3ff7880d6eb1e74bf6638313329fc840287a7a0f 100644
--- a/base/base_paths_linux.cc
+++ b/base/base_paths_linux.cc
@@ -51,7 +51,7 @@ bool PathProviderPosix(int key, FilePath* result) {
char bin_dir[PATH_MAX + 1];
size_t length = sizeof(bin_dir);
int error = sysctl(name, 4, bin_dir, &length, NULL, 0);
- if (error < 0 || length == 0 || strlen(bin_dir) == 0) {
+ if (error < 0 || length == 0 || *bin_dir == '\0') {
NOTREACHED() << "Unable to resolve path.";
return false;
}
« no previous file with comments | « no previous file | chrome/default_plugin/plugin_impl_aura.cc » ('j') | chrome/default_plugin/plugin_impl_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698