1
0
mirror of https://git.yoctoproject.org/poky synced 2026-07-17 04:07:06 +00:00

gsmd: add a patch to fix initialisation segfault

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5006 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Ross Burton
2008-08-01 14:12:38 +00:00
parent 6f626196ec
commit 9f55811c01
2 changed files with 25 additions and 1 deletions
@@ -0,0 +1,23 @@
Index: src/gsmd/gsmd.c
===================================================================
--- a/src/gsmd/gsmd.c (revision 4304)
+++ b/src/gsmd/gsmd.c (working copy)
@@ -196,13 +196,13 @@
sms_cb_init(gsmd);
- if (gsmd->vendorpl && gsmd->vendorpl->initsettings){
+ if (gsmd->vendorpl && gsmd->vendorpl->initsettings)
rc |= gsmd->vendorpl->initsettings(gsmd);
+
+ if (gsmd->machinepl && gsmd->machinepl->initsettings)
rc |= gsmd->machinepl->initsettings(gsmd);
- return rc;
- }
- else
- return rc;
+
+ return rc;
}
static int firstcmd_response = 0;