* [PATCH] stk: fix issue with null data object
@ 2011-03-11 9:39 Andrzej Zaborowski
2011-03-11 20:40 ` Denis Kenzior
0 siblings, 1 reply; 2+ messages in thread
From: Andrzej Zaborowski @ 2011-03-11 9:39 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 539 bytes --]
This will let the caller correctly detect NULL alpha id.
---
src/stkutil.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/stkutil.c b/src/stkutil.c
index abd1c99..c64cb7a 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -309,7 +309,7 @@ static gboolean parse_dataobj_alpha_id(struct comprehension_tlv_iter *iter,
len = comprehension_tlv_iter_get_length(iter);
if (len == 0) {
- *alpha_id = g_try_malloc0(1);
+ *alpha_id = NULL;
return TRUE;
}
--
1.7.1.86.g0e460.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] stk: fix issue with null data object
2011-03-11 9:39 [PATCH] stk: fix issue with null data object Andrzej Zaborowski
@ 2011-03-11 20:40 ` Denis Kenzior
0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2011-03-11 20:40 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 272 bytes --]
Hi Andrew,
On 03/11/2011 03:39 AM, Andrzej Zaborowski wrote:
> This will let the caller correctly detect NULL alpha id.
> ---
> src/stkutil.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
Patch has been applied, thanks.
Regards,
-Denis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-11 20:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11 9:39 [PATCH] stk: fix issue with null data object Andrzej Zaborowski
2011-03-11 20:40 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.