Fix base32 header to correct guard (#353)
This commit is contained in:
Родитель
612376846e
Коммит
60a9e9d257
|
@ -1,8 +1,8 @@
|
|||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
#ifndef AZURE_BASE64_H
|
||||
#define AZURE_BASE64_H
|
||||
#ifndef AZURE_BASE32_H
|
||||
#define AZURE_BASE32_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <cstddef>
|
||||
|
@ -60,4 +60,4 @@ MOCKABLE_FUNCTION(, BUFFER_HANDLE, Azure_Base32_Decode_String, const char*, sour
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* AZURE_BASE64_H */
|
||||
#endif /* AZURE_BASE32_H */
|
||||
|
|
|
@ -324,14 +324,14 @@ char* Azure_Base32_Encode_Bytes(const unsigned char* source, size_t size)
|
|||
else if (size == 0)
|
||||
{
|
||||
/* Codes_SRS_BASE32_07_005: [ If size is 0 Azure_Base32_Encode_Bytes shall return an empty string. ] */
|
||||
if ((result = malloc(1)) != NULL)
|
||||
{
|
||||
strcpy(result, "");
|
||||
}
|
||||
else
|
||||
{
|
||||
LogError("unable to allocate memory for result");
|
||||
}
|
||||
if ((result = malloc(1)) != NULL)
|
||||
{
|
||||
strcpy(result, "");
|
||||
}
|
||||
else
|
||||
{
|
||||
LogError("unable to allocate memory for result");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче