I have some code in my application that looks something like this:
char *hash = (char*) sqlite3_column_text(get_bookmark, 0); NSString* postHash = [NSString
However I find that postHash is an empty string (@"") for some users some of the time. Can anyone explain why?
However I find that postHash is an empty string (@"") for some users some of the time.
postHash
@""
Can anyone explain why?
Because hash is an empty string (hash[0] == '\0').
hash
hash[0] == '\0'