mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
src/nhttpd: clean code
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include <cstring>
|
||||
#include <cstdlib>
|
||||
#include "mod_auth.h"
|
||||
#include "helper.h"
|
||||
#include <helper.h>
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// HOOK: response_hook
|
||||
@@ -65,11 +65,11 @@ bool CmAuth::CheckAuth(CyhookHandler *hh) {
|
||||
// decode Base64 buffer to String
|
||||
//-----------------------------------------------------------------------------
|
||||
std::string CmAuth::decodeBase64(const char *b64buffer) {
|
||||
char *newString, *org_newString; //shorter then b64buffer
|
||||
char *newString; //shorter then b64buffer
|
||||
std::string result;
|
||||
if ((newString = (char *) malloc(sizeof(char) * strlen(b64buffer) + 1))
|
||||
!= NULL) {
|
||||
org_newString = newString;
|
||||
char *org_newString = newString;
|
||||
int i = 0;
|
||||
unsigned long c = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user