git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
util: Don't cast returns from malloc()
[openafs.git]
/
src
/
util
/
hostparse.c
diff --git
a/src/util/hostparse.c
b/src/util/hostparse.c
index
0079d8c
..
9caf422
100644
(file)
--- a/
src/util/hostparse.c
+++ b/
src/util/hostparse.c
@@
-244,7
+244,7
@@
gettmpdir(void)
if (saveTmpDir == NULL) {
/* initialize global temporary directory string */
- char *dirp = (char *)malloc(MAX_PATH+1);
+ char *dirp = malloc(MAX_PATH+1);
int freeDirp = 1;
if (dirp != NULL) {