aboutsummaryrefslogtreecommitdiffstats
path: root/P3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--P3/server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/P3/server.c b/P3/server.c
index a285392..6e99330 100644
--- a/P3/server.c
+++ b/P3/server.c
@@ -219,7 +219,11 @@ int main(int argc, char **argv) {
// Initialize cache (extra credit B)
cache_entry_t *dynQ;
if (cSiz != 0) {
+ //Should the queue start this large?
dynQ = (cache_entry_t*) malloc(cSiz * sizeof(cache_entry_t));
+ if (dynQ == NULL) {
+ printf("malloc cannot allocate the initial requested memory.\n")
+ }
}
// Start the server