Skip to content

Commit

Permalink
Fix warning about always true condition
Browse files Browse the repository at this point in the history
  • Loading branch information
satk0 committed Jul 13, 2024
1 parent 984992a commit 48702f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/include/r_util/r_str.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ typedef struct r_charset_t {
#define R_STR_ISEMPTY(x) (!(x) || !*(x))
#define R_STR_ISNOTEMPTY(x) ((x) && *(x))
#define R_STR_DUP(x) (((x) != NULL) ? strdup ((x)) : NULL)
#define R_STR_NDUP(ptr, len) ((!ptr || len < 0) ? NULL : strndup (ptr, len))
#define R_STR_NDUP(ptr, len) ((((ptr) == NULL) || len < 0) ? NULL : strndup (ptr, len))
#define r_str_array(x,y) ((y >= 0 && y < (sizeof (x) / sizeof (*(x))))?(x)[(y)]: "")
R_API RCharset *r_charset_new(void);
R_API void r_charset_free(RCharset *charset);
Expand Down

0 comments on commit 48702f7

Please sign in to comment.