Skip to content

Commit

Permalink
添加变量初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
youxingx committed Apr 1, 2019
1 parent d0b5477 commit 14c6349
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions clib/uuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void uuid20(char *result)

void uuid64hex(char* uuidRes)
{
unsigned __int128 uuid_num;
unsigned __int128 uuid_num=0;
int strIndex = 0;
int index = 0;

Expand All @@ -142,7 +142,7 @@ void uuid64hex(char* uuidRes)

void uuid94hex(char* uuidRes)
{
unsigned __int128 uuid_num;
unsigned __int128 uuid_num=0;
int strIndex = 0;
int index = 0;

Expand All @@ -160,7 +160,7 @@ void uuid94hex(char* uuidRes)

void uuid128hex(char* uuidRes)
{
unsigned __int128 uuid_num;
unsigned __int128 uuid_num=0;
int strIndex = 0;
int index = 0;

Expand All @@ -178,7 +178,7 @@ void uuid128hex(char* uuidRes)

void uuid256hex(char* uuidRes)
{
unsigned __int128 uuid_num;
unsigned __int128 uuid_num=0;
int strIndex = 0;
int index = 0;

Expand All @@ -195,7 +195,7 @@ void uuid256hex(char* uuidRes)

void uuid64hexbyuuid(char* uuidRes,char* uuid)
{
unsigned __int128 uuid_num;
unsigned __int128 uuid_num=0;
int strIndex = 0;
int index = 0;
uuid_t uu;
Expand All @@ -215,7 +215,7 @@ void uuid64hexbyuuid(char* uuidRes,char* uuid)

void uuid94hexbyuuid(char* uuidRes,char* uuid)
{
unsigned __int128 uuid_num;
unsigned __int128 uuid_num=0;
int strIndex = 0;
int index = 0;
uuid_t uu;
Expand All @@ -233,7 +233,7 @@ void uuid94hexbyuuid(char* uuidRes,char* uuid)

void uuid128hexbyuuid(char* uuidRes,char* uuid)
{
unsigned __int128 uuid_num;
unsigned __int128 uuid_num=0;
int strIndex = 0;
int index = 0;
uuid_t uu;
Expand All @@ -251,7 +251,7 @@ void uuid128hexbyuuid(char* uuidRes,char* uuid)

void uuid256hexbyuuid(char* uuidRes,char* uuid)
{
unsigned __int128 uuid_num;
unsigned __int128 uuid_num=0;
int strIndex = 0;
int index = 0;

Expand Down
2 changes: 1 addition & 1 deletion uuidx-1.0-1.rockspec → uuidx-1.0-2.rockspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package = "uuidx"
version = "1.0-1"
version = "1.0-2"
source = {
url = "git://github.com/zs-soft/lua-resty-UUID_64_94.git",
branch = "master"
Expand Down

0 comments on commit 14c6349

Please sign in to comment.