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

Unified Diff: fusl/src/malloc/malloc_usable_size.c

Issue 1689833004: [fusl] Update fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: remove stray space Created 4 years, 10 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 | « fusl/src/legacy/utmpx.c ('k') | fusl/src/network/lookup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/malloc/malloc_usable_size.c
diff --git a/fusl/src/malloc/malloc_usable_size.c b/fusl/src/malloc/malloc_usable_size.c
index 8cccd9d8d68b2e4fc6a230a7e9f0537a60c2353a..6743ea7752a0c44305b009c80ad7b23d153a5ac0 100644
--- a/fusl/src/malloc/malloc_usable_size.c
+++ b/fusl/src/malloc/malloc_usable_size.c
@@ -13,5 +13,5 @@ struct chunk {
size_t malloc_usable_size(void *p)
{
- return CHUNK_SIZE(MEM_TO_CHUNK(p)) - OVERHEAD;
+ return p ? CHUNK_SIZE(MEM_TO_CHUNK(p)) - OVERHEAD : 0;
}
« no previous file with comments | « fusl/src/legacy/utmpx.c ('k') | fusl/src/network/lookup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698