forked from enlightenment/efl
Ecore_X(cb): Make sure we have argv[i] before we try to strlen it.
SVN revision: 64302
This commit is contained in:
parent
3cf77b0b30
commit
880a34d2a6
|
@ -26,7 +26,7 @@ ecore_x_icccm_command_set(Ecore_X_Window win,
|
|||
CHECK_XCB_CONN;
|
||||
|
||||
for (i = 0, nbytes = 0; i < argc; i++)
|
||||
nbytes += strlen(argv[i]) + 1;
|
||||
if (argv[i]) nbytes += strlen(argv[i]) + 1;
|
||||
|
||||
buf = malloc(sizeof(char) * nbytes);
|
||||
if (!buf) return;
|
||||
|
|
Loading…
Reference in New Issue