diff options
Diffstat (limited to 'src/daemon/fileserver_example.c')
-rw-r--r-- | src/daemon/fileserver_example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/fileserver_example.c b/src/daemon/fileserver_example.c index 9f86fd2c..866c2463 100644 --- a/src/daemon/fileserver_example.c +++ b/src/daemon/fileserver_example.c | |||
@@ -62,13 +62,13 @@ ahc_echo (void *cls, | |||
62 | 62 | ||
63 | if (0 != strcmp (method, "GET")) | 63 | if (0 != strcmp (method, "GET")) |
64 | return MHD_NO; /* unexpected method */ | 64 | return MHD_NO; /* unexpected method */ |
65 | if (&aptr != *ptr) | 65 | if (&aptr != *ptr) |
66 | { | 66 | { |
67 | /* do never respond on first call */ | 67 | /* do never respond on first call */ |
68 | *ptr = &aptr; | 68 | *ptr = &aptr; |
69 | return MHD_YES; | 69 | return MHD_YES; |
70 | } | 70 | } |
71 | *ptr = NULL; /* reset when done */ | 71 | *ptr = NULL; /* reset when done */ |
72 | file = fopen (&url[1], "r"); | 72 | file = fopen (&url[1], "r"); |
73 | if (file == NULL) | 73 | if (file == NULL) |
74 | { | 74 | { |