From c18faadc81e5ddf4d76b76ac1ebd34d845f48dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 11 Apr 2016 22:46:08 +0200 Subject: [PATCH] Version 15.192.10 --- swad_changelog.h | 3 ++- swad_image.c | 1 + swad_parameter.c | 4 ++-- swad_test.c | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index b01732863..95f165545 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -135,13 +135,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.192.9 (2016-04-11)" +#define Log_PLATFORM_VERSION "SWAD 15.192.10 (2016-04-11)" #define CSS_FILE "swad15.192.9.css" #define JS_FILE "swad15.190.1.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1 /* + Version 15.192.10:Apr 11, 2016 Fixed bug in edition of test questions. (199335 lines) Version 15.192.9: Apr 11, 2016 Changed layout of form to send attached image in forum posts and messages. (199333 lines) Version 15.192.8: Apr 11, 2016 Contextual icon to remove user's photo. (199331 lines) Version 15.192.7: Apr 11, 2016 Changes in forms to upload user's photo. (199340 lines) diff --git a/swad_image.c b/swad_image.c index 23bf0f375..c41c693dc 100644 --- a/swad_image.c +++ b/swad_image.c @@ -29,6 +29,7 @@ #include // For boolean type #include // For exit, system, malloc, free, etc #include // For string functions +#include // For the macro WEXITSTATUS #include // For unlink #include "swad_config.h" diff --git a/swad_parameter.c b/swad_parameter.c index 9d9061851..bb1dd1a8f 100644 --- a/swad_parameter.c +++ b/swad_parameter.c @@ -232,7 +232,7 @@ void Par_CreateListOfParams (void) static void Par_CreateListOfParamsFromQueryString (void) { unsigned long CurPos; // Current position in query string - struct Param *Param; + struct Param *Param = NULL; // Initialized to avoid warning struct Param *NewParam; /***** Check if query string is empty *****/ @@ -297,7 +297,7 @@ static void Par_CreateListOfParamsFromTmpFile (void) static const char *StringFilename = "; filename=\""; static const char *StringContentType = "Content-Type: "; unsigned long CurPos; // Current position in temporal file - struct Param *Param; + struct Param *Param = NULL; // Initialized to avoid warning struct Param *NewParam; int Ch; char StrAux[Par_MAX_BYTES_STR_AUX+1]; diff --git a/swad_test.c b/swad_test.c index a9a695f68..37cf80cdb 100644 --- a/swad_test.c +++ b/swad_test.c @@ -1076,7 +1076,7 @@ static void Tst_PutFormToEditQstImage (struct Image *Image, if (!Image->Name[0]) { /* Action to perform on image */ - Par_PutHiddenParamUnsigned ("ImgAct",(unsigned) Img_ACTION_NEW_IMAGE); + Par_PutHiddenParamUnsigned (ParamAction,(unsigned) Img_ACTION_NEW_IMAGE); /* File */ fprintf (Gbl.F.Out,"